see attached
 
Peter
"Alan Tennant" <alan2here@gmail.com> wrote in message news:a557f5fb1001301059h1dfc32davd917a47d8c598a05@mail.gmail.com...
Firstly. Thank you very much team Boost, it looks like it will be very useful and solve many of my coding problems.

I can create an any
boost::any a1;

I can assign something to it
a1 = string1;

I can get it back out later
std::cout<<any_cast<std::string>(a1);

A boost any has a "type()" method.

However this produced an error.

std::cout<<any_cast<a1.type()>(a1);


_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users