|
 |
Nicolas Alvarez wrote:
> I think the most useful feature of RTTI is not typeid() to get a string, but
> dynamic_cast.
I think my C++ fu is obviously very weak. I'm having a hard time seeing how
boost::any works, or at least what are the requirements and syntax of the
instantiation of it.
http://www.two-sdg.demon.co.uk/curbralan/papers/ValuedConversions.pdf
It sounds like "Employing the member template mechanism supports implicit
conversion from values of an arbitrary type into an any." means that I can
just say
any X = string("Hello");
and X will be an any<string> initialized to a copy of the std::string "Hello"?
--
Darren New, San Diego CA, USA (PST)
My fortune cookie said, "You will soon be
unable to read this, even at arm's length."
Post a reply to this message
|
 |