
19 May
2010
19 May
'10
3:49 p.m.
How to get a string representation of of boost::any value? for example, is the following approach correct? boost::any t(2); std::string str = boost::any_caststd::string(t); In addition, from searching archieves I understand that there is no serialization for boost::any. Currently I plan to examine "name" in type_info returned from boost::any::type() and serialize accordingly. I'll appreciate any advise for better approach.