
28 Apr
2010
28 Apr
'10
4:25 a.m.
vicente,
Doesn't any_cast do what you are looking for? template<typename T> T any_cast(any &); template<typename T> T any_cast(const any &); template<typename ValueType> const ValueType * any_cast(const any *); template<typename ValueType> ValueType * any_cast(any *);
sure thing. If you look closely, any_cast is called from within my code. However, when trying to using boost::any and boost::variant interchangeably it is handy to have a common interface like the one boost::get provides. Christoph