Home » U++ Library support » U++ Core » Array container does only serialize base classes
Re: Array container does only serialize base classes [message #2821 is a reply to message #2820] |
Wed, 26 April 2006 13:07  |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
gprentice wrote on Wed, 26 April 2006 06:34 |
<speculating>
Not exactly sure what Array class does, as I haven't learnt NTL or concepts like "pick" yet (shame on me), but according to Array documentation, Array owns its contained objects, so maybe that means the class needs a virtual destructor anyway, otherwise the derived destructor is never called ??
Even if typeinfo failed to detect a derived type for some cases, it might help other cases, and a mechanism for disabling the runtime assert is probably easy to provide.
</speculating>
Graeme
|
I think you are right...
Just to make it clear, Array can and often is used in non-polymorphic situations too (e.g. for non-Moveable objects), then the virtual destructor really is not needed.
Mirek
|
|
|
Goto Forum:
Current Time: Tue Aug 12 13:08:59 CEST 2025
Total time taken to generate the page: 0.06145 seconds
|