|
Boost Users : |
Subject: [Boost-users] [type_traits]: is_boost_optional?
From: Roland Bock (rbock_at_[hidden])
Date: 2010-09-01 08:07:09
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net