Hi, I have a map of a base class object (not pointer to objects). I did this because I need to have inheritance from others types like this:
Parameter
RealParameter: Parameter
IntParameter: Parameter
...
My problem is that when I am going to insert in the map, copy constructur of the base class is called, but really Parameter is only an class with all virtual methods, and all data is in the derived class. How can I develope a copy constructor of a base case class that allows me to copy his derived class associated?
thanks all!