problem with vectors

Hi
I am trying to use the vector of objects and assign a value to the vector using '=' operator as follows

vector<Panel> panelArray;
panelArray[panelCount] = Panel(x,y);

I am getting the following error.
error C2582: 'operator =' function is unavailable in 'Panel'

but the '='operator is overloaded in the vector class.So why can't I use it.

Please Help.
You already have a thread here:

http://cplusplus.com/forum/general/12030/

Posting another thread when your original thread is clearly visible on the first page does not make people want to help you more, it just irritates them.
Topic archived. No new replies allowed.