
10 Nov
2004
10 Nov
'04
2:49 p.m.
martin.ecker@tab.at wrote:
Peter Dimov wrote:
In general, I propose adding some sort of user data mechanism to archives.
What do you suggest along those lines?
We have found it necessary to associate user data with archives in certain circumstances. In our case, I have simply added a boost::any as member data to every archive (by introducing a base class for all archives, since currently input and output archives do not have a common base class).
This isn't good enough for me... sorry. I don't want to force archives to inherit from a common base class, and a single boost::any doesn't seem enough. What if you need to serialize two classes, each requiring a registry?