Boost logo

Boost :

From: Vishnu Mahadevan Menon (vishnu_m_menon_at_[hidden])
Date: 2005-04-15 06:25:08


Just how do we serialize boost::any variables using
the boost serialization library?

I currently have an implementation, but it isn't very
pretty. I think what I am doing is essentially similar
to what boost serialization does when we register
classes for serializing polymorphic pointers: using
the type_info in the boost::any variable, call the
correct serializer/deserializer functions using a
previously registered list. The ugly part is that now
I've to register *twice* (once with boost and once
with my list), pretty much to accomplish the same
thing.

Does anyone know of a cleaner way to serialize
boost::any?

Thanks to those who reply in advance!

Regards,
Vishnu.

                
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk