Hi,
I have an abstract base class with two inherited classes. In both these classes I define a virtual method that is used by the constructor. Now I need to create a copy constructor, but I can not declare the copy constructor as virtual, but I want the method call inside it to be dependent on the type of object that is fed as argument. How can I solve this?
Right now I use the base class to define the type of argument, this doesn't work since the method I call inside the copy constructor is not defined in the base class.
Basically I need the copy constructor to be virtual.