
1 Sep
2010
1 Sep
'10
12:07 p.m.
Hi, is there something in Boost.TypeTraits (or somewhere else) that allows me to check if a type is a boost::optional? I'd like to do something like this: template<typename T> typename enable_if<is_boost_optional<T> >, T::value_type>::type foo(const T&); Thanks and regards, Roland