1 // Copyright Daniel Wallin, David Abrahams 2010.
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 #ifndef BOOST_PARAMETER_IS_MAYBE_050329_HPP
7 #define BOOST_PARAMETER_IS_MAYBE_050329_HPP
9 namespace boost { namespace parameter { namespace aux {
14 }}} // namespace boost::parameter::aux
16 #if defined(BOOST_PARAMETER_CAN_USE_MP11)
17 #include <type_traits>
19 namespace boost { namespace parameter { namespace aux {
22 using is_maybe = ::std::is_base_of<
23 ::boost::parameter::aux::maybe_base
24 , typename ::std::remove_const<T>::type
26 }}} // namespace boost::parameter::aux
28 #else // !defined(BOOST_PARAMETER_CAN_USE_MP11)
29 #include <boost/mpl/bool.hpp>
30 #include <boost/mpl/if.hpp>
31 #include <boost/type_traits/is_base_of.hpp>
32 #include <boost/type_traits/remove_const.hpp>
34 namespace boost { namespace parameter { namespace aux {
40 ::boost::parameter::aux::maybe_base
41 , typename ::boost::remove_const<T>::type
44 , ::boost::mpl::false_
48 }}} // namespace boost::parameter::aux
50 #endif // BOOST_PARAMETER_CAN_USE_MP11
51 #endif // include guard