Home » U++ Library support » U++ Core » PolyDeepCopyNew: MSC / GCC differ in behaviour
Re: PolyDeepCopyNew: MSC / GCC differ in behaviour [message #29395 is a reply to message #29363] |
Mon, 18 October 2010 15:07  |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
Quote: |
should perhaps be
template<class B, class C, class CB = EmptyClass>
class PolyCopyableC : public B, public PolyDeepCopyNew<PolyCopyableC<C, CB>, CopyableC<C, CB> >
|
if i choose PolyCopyableC instead of CopyableC, the DeepCopyNew from PolyDeepCopyNew will be instantiated PolyCopyableC, and using my Array<CopyableC....> will try to envoke DeepCopyNew<CopyableC<..> >, which will end up using the templated one, and not the one using the t.Copy() function..
short: i need Array<CopyableC<..> > to use the DeepCopyNew<CopyableC<..> > invoking Copy()
|
|
|
Goto Forum:
Current Time: Sun Aug 24 20:22:02 CEST 2025
Total time taken to generate the page: 0.05090 seconds
|