
30 Aug
2011
30 Aug
'11
11:31 p.m.
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