Boost logo

Boost Users :

Subject: [Boost-users] [serialization] Attaching arbitrary data to an archive
From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2010-06-01 13:35:06


Sometimes during serialization an object needs to know a lot more than
it does during normal operation. The way I've dealt with this in the
past is to subclass the archive I want to use and add setter/getters for
the data that various objects down the line are going to need to store
and retrieve themselves.

Is there a better way though, something that's built into the library
already maybe? I don't see anything but I thought I'd ask.

-- 
http://crazyeddiecpp.blogspot.com/

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net