Home » U++ Library support » U++ Core » PolyDeepCopyNew: MSC / GCC differ in behaviour
Re: PolyDeepCopyNew: MSC / GCC differ in behaviour [message #29397 is a reply to message #29388] |
Mon, 18 October 2010 16:03   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
kohait00 wrote on Mon, 18 October 2010 03:35 | hi mirek
the weired point is, in MSC it works.. gcc does not recognize the friend DeepCopyNew as the specialisation from template
|
Well, the C++ rules as applied to your code are so complicated that even compiler writers interpret them differently 
Frankly, the code is quite complicated for me too. Resolving the issue whether MSC or GCC is right might require several hours spend with C++ standard, which is something I am not going to sacrifice now:) If you want to have fun, concentrate on chapters that deal with template class instantiation...
Personally, I do not see any usefulness in what your are trying to do. Even current version of PolyDeepCopyNew is in fact "purely academic" - we know we are able to create a copy of polymorphic container, but in practice, it is never needed. I would even say that code that would benefit from it might have some serious design flaw 
|
|
|
Goto Forum:
Current Time: Sun Aug 24 20:20:33 CEST 2025
Total time taken to generate the page: 0.04840 seconds
|