$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boost::any, string conversion and serialization
From: Archie14 (admin_at_[hidden])
Date: 2010-05-19 12:25:35
Nathan Crookston <nathan.crookston <at> gmail.com> writes:
>.
>
> For that you would need something like:
>
> std::string str = boost::lexical_cast<std::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.