
30 Jan
2010
30 Jan
'10
7:58 p.m.
AMDG Alan Tennant wrote:
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<
std::string(a1); A boost any has a "type()" method.
However this produced an error.
std::cout<
(a1);
Template parameters have to be types. The result of a1.type() is a std::type_info object. In Christ, Steven Watanabe