diff options
Diffstat (limited to 'boost/type_traits/conditional.hpp')
-rw-r--r-- | boost/type_traits/conditional.hpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/boost/type_traits/conditional.hpp b/boost/type_traits/conditional.hpp index 8bbda85fc6..b7e82dbe82 100644 --- a/boost/type_traits/conditional.hpp +++ b/boost/type_traits/conditional.hpp @@ -1,4 +1,3 @@ - // (C) Copyright John Maddock 2010. // Use, modification and distribution are subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at @@ -10,14 +9,10 @@ #ifndef BOOST_TT_CONDITIONAL_HPP_INCLUDED #define BOOST_TT_CONDITIONAL_HPP_INCLUDED -#include <boost/mpl/if.hpp> - namespace boost { -template <bool b, class T, class U> -struct conditional : public mpl::if_c<b, T, U> -{ -}; +template <bool b, class T, class U> struct conditional { typedef T type; }; +template <class T, class U> struct conditional<false, T, U> { typedef U type; }; } // namespace boost |