
19 May
2010
19 May
'10
4:25 p.m.
Nathan Crookston
.
For that you would need something like:
std::string str = boost::lexical_caststd::string(boost::any_cast<int>(t));
That was my first choice except that in my situation I don't know the type of boost::any in advance. Issue of serialization of boost::any pops up every now and then and in almost the same situation - using boost::any for storing some kind of properties in the container.