|
Boost Users : |
Subject: Re: [Boost-users] [serialization] deserializing asynchronouslyserialized types
From: Robert Ramey (ramey_at_[hidden])
Date: 2011-08-30 19:31:20
Andrew Hundt wrote:
> I could also serialize an index or custom headers indicating the next
> type to appear, I would prefer to avoid doing so.
Just use boost::variant. Serialization is already implemented for it
and it effectively does the above. It does a bunch of other stuff
as well which is likely useful for your application.
Robert Ramey
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