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 » Community » PR, media coverage, articles and documentation » Some Shocking Facts You Probably Didn't Want to Know about U++ Framework...
Re: Some Shocking Facts You Probably Didn't Want to Know about U++ Framework... [message #55425 is a reply to message #55424] Tue, 10 November 2020 10:03 Go to previous messageGo to previous message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
mirek wrote on Mon, 09 November 2020 23:05

Seriously, you cannot... Sorry that I might have created that impression.

I mean, you definitely can solve this, but not with out-of-box Array::Serialize. You need to provide your own serialization there and store the type on saving, load on loading.

In reality, this is not needed very often...

Mirek


Absolutely nothing to apologize.

Actually, I have already worked my way around this by serializing type ID and then object. However, I went the harder way by using Vector<BaseClass*> instead of Array<BaseClass> since, at the time, I did not know about the possibility to store inherited classes in an Array.

Thanks and best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon10.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Layout Designer has been documented (TheIDE)
Next Topic: 2nd price!
Goto Forum:
  


Current Time: Fri Apr 19 08:39:03 CEST 2024

Total time taken to generate the page: 0.04926 seconds