Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
mirek is currently offline  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 Smile

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 Smile
 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PROPOSAL: SerializeStore helper
Next Topic: Value: no deep copy support?
Goto Forum:
  


Current Time: Sun Aug 24 20:20:33 CEST 2025

Total time taken to generate the page: 0.04840 seconds