How do we serialize boost::any?

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/
participants (1)
-
Vishnu Mahadevan Menon