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 » 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 Go to previous message
mirek is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NTL and C4251
Next Topic: is there a substring method?
Goto Forum:
  


Current Time: Tue Aug 12 09:56:58 CEST 2025

Total time taken to generate the page: 0.04595 seconds