Hi,
I think the title is clear on explaining my problem.... consider the following snippet:
class Critter {
int m_Age;
};
int main()
{
vector<Critter* const> critters;
for(int i = 0; i < 10; ++i)
critters.push_back(new Critter());
critters[2] = new Critter();
return 0;
}
Shouldn't the line critters[2] = new Critter();
be illegal?
Thank You