U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » About Serialization
Re: About Serialization [message #50768 is a reply to message #50767] Fri, 14 December 2018 12:58 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Tom1 wrote on Fri, 14 December 2018 11:34
Hi Mirek,

I would like to serialize 'Vector<Any> vec;', but Any does not have Serialize() available. How to proceed to accomplish this?

Best regards,

Tom


That is basically impossible for really generic case...

If the set of classes stored in Any is fixed, you can do that testing this fixed set of types, encoding the type when being stored and storing using types's Serialize, then on loading creating proper class based on encoded type and again Serialize it back.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: AssertST problem in initialization when debugging on MSBT17x64
Next Topic: GetCsvLine
Goto Forum:
  


Current Time: Thu Jun 11 10:32:52 GMT+2 2026

Total time taken to generate the page: 0.00564 seconds