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 #2815 is a reply to message #2814] Wed, 26 April 2006 09:47 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
hans wrote on Wed, 26 April 2006 03:38

Hi,
the Array container class does not recreate the derived classes when Serialize() for load is called, only the base classe.

Either it should recreate the derived class, which requires some kind of class factory, like MFC dyncreate. Or it should ASSERT on save if a derived class object is in the Array.




Yes, this is correct. I vote for ASSERT, however, at the moment I am not sure how condition should look like? Maybe typeinfo name equality?

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:45:23 CEST 2025

Total time taken to generate the page: 0.05893 seconds