kohait00 Messages: 939 Registered: July 2009 Location: Germany
Experienced Contributor
and i probably can explain why it did not compile...
since PolyDeepCopyNew::DeepCopyNew(const CopyableC&) was provided as of the hierarchy level / namespace of PolyCopyableC, and the compiler tried to match its existence only from CopyableC, it didnt find it there.
instatiating it explicitly helped it, but was no right cure..
i admit the approach is not easy.. but i hope to be able to provide a testcase showing all of what has been 'invented' so far..
it's a generic factory helper, for polymorphic elements, specifying a common handling interface and beeing able to extend it eith some additional functions from very bottom (in case common interface like i.e. Ctrl cant be extended from inside..)