Error trying to make a wrapper of the STL map container?

You are missing the template parameters for map, you have to specify typename when declaring the iterator (see here ), and for some reason unknown to me (probably a namespace conflict) you have to use this when calling end().

It's no quite good idea to inherit an STL container.. None of the STL containers is supposed to be a base class. You must really have a good reason to do that and to be very careful using such objects. The reason is, that none of the STL containers have a virtual destructor.

So, if you have a pointer, for example std::map *, that points to your object (that has inherited the map container), the one of the destructors will NOT be called. This is a 100% memory leak.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions