diff --git a/include/boost/concept/assert.hpp b/include/boost/concept/assert.hpp index cf98179..36c3b03 100644 --- a/include/boost/concept/assert.hpp +++ b/include/boost/concept/assert.hpp @@ -5,7 +5,7 @@ # define BOOST_CONCEPT_ASSERT_DWA2006430_HPP # include -# include +# include // The old protocol used a constraints() member function in concept // checking classes. If the compiler supports SFINAE, we can detect diff --git a/include/boost/concept/detail/general.hpp b/include/boost/concept/detail/general.hpp index 525ea65..eeb0875 100644 --- a/include/boost/concept/detail/general.hpp +++ b/include/boost/concept/detail/general.hpp @@ -10,7 +10,7 @@ # ifdef BOOST_OLD_CONCEPT_SUPPORT # include -# include +# include # endif // This implementation works on Comeau and GCC, all the way back to @@ -49,8 +49,8 @@ struct constraint template struct requirement_ - : mpl::if_< - concepts::not_satisfied + : boost::conditional< + concepts::not_satisfied::value , constraint , requirement >::type diff --git a/include/boost/concept/detail/has_constraints.hpp b/include/boost/concept/detail/has_constraints.hpp index a309db3..dc2c207 100644 --- a/include/boost/concept/detail/has_constraints.hpp +++ b/include/boost/concept/detail/has_constraints.hpp @@ -4,8 +4,8 @@ #ifndef BOOST_CONCEPT_DETAIL_HAS_CONSTRAINTS_DWA2006429_HPP # define BOOST_CONCEPT_DETAIL_HAS_CONSTRAINTS_DWA2006429_HPP -# include -# include +# include +# include # include namespace boost { namespace concepts { @@ -42,7 +42,7 @@ struct not_satisfied BOOST_STATIC_CONSTANT( bool , value = sizeof( detail::has_constraints_((Model*)0) ) == sizeof(detail::yes) ); - typedef mpl::bool_ type; + typedef boost::integral_constant type; }; }} // namespace boost::concepts::detail diff --git a/include/boost/concept/detail/msvc.hpp b/include/boost/concept/detail/msvc.hpp index 078dd22..933ac02 100644 --- a/include/boost/concept/detail/msvc.hpp +++ b/include/boost/concept/detail/msvc.hpp @@ -10,7 +10,7 @@ # ifdef BOOST_OLD_CONCEPT_SUPPORT # include -# include +# include # endif # ifdef BOOST_MSVC @@ -54,7 +54,7 @@ namespace detail template struct require - : mpl::if_c< + : boost::conditional< not_satisfied::value , detail::constraint # ifndef BOOST_NO_PARTIAL_SPECIALIZATION diff --git a/include/boost/concept/usage.hpp b/include/boost/concept/usage.hpp index e73370f..373de63 100644 --- a/include/boost/concept/usage.hpp +++ b/include/boost/concept/usage.hpp @@ -5,7 +5,7 @@ # define BOOST_CONCEPT_USAGE_DWA2006919_HPP # include -# include +# include # include namespace boost { namespace concepts { diff --git a/include/boost/concept_archetype.hpp b/include/boost/concept_archetype.hpp index f2455fd..ed550be 100644 --- a/include/boost/concept_archetype.hpp +++ b/include/boost/concept_archetype.hpp @@ -15,7 +15,6 @@ #define BOOST_CONCEPT_ARCHETYPES_HPP #include -#include #include #include // iterator tags #include // std::ptrdiff_t diff --git a/include/boost/concept_check.hpp b/include/boost/concept_check.hpp index 62bc872..660516f 100644 --- a/include/boost/concept_check.hpp +++ b/include/boost/concept_check.hpp @@ -24,9 +24,9 @@ # include # include # include -# include -# include -# include +# include +# include +# include # include # include @@ -301,14 +301,14 @@ namespace boost BOOST_CONCEPT_USAGE(Generator) { test(is_void()); } private: - void test(boost::mpl::false_) + void test(boost::false_type) { // Do we really want a reference here? const Return& r = f(); ignore_unused_variable_warning(r); } - void test(boost::mpl::true_) + void test(boost::true_type) { f(); } @@ -321,14 +321,14 @@ namespace boost BOOST_CONCEPT_USAGE(UnaryFunction) { test(is_void()); } private: - void test(boost::mpl::false_) + void test(boost::false_type) { f(arg); // "priming the pump" this way keeps msvc6 happy (ICE) Return r = f(arg); ignore_unused_variable_warning(r); } - void test(boost::mpl::true_) + void test(boost::true_type) { f(arg); } @@ -350,14 +350,14 @@ namespace boost { BOOST_CONCEPT_USAGE(BinaryFunction) { test(is_void()); } private: - void test(boost::mpl::false_) + void test(boost::false_type) { f(first,second); Return r = f(first, second); // require operator() (void)r; } - void test(boost::mpl::true_) + void test(boost::true_type) { f(first,second); } @@ -966,7 +966,7 @@ namespace boost { typedef typename C::key_type key_type; typedef typename C::value_type value_type; - BOOST_MPL_ASSERT((boost::is_same)); + BOOST_STATIC_ASSERT((boost::is_same::value)); } }; @@ -979,7 +979,7 @@ namespace boost typedef typename C::value_type value_type; typedef typename C::mapped_type mapped_type; typedef std::pair required_value_type; - BOOST_MPL_ASSERT((boost::is_same)); + BOOST_STATIC_ASSERT((boost::is_same::value)); } }; diff --git a/include/boost/concept_check/general.hpp b/include/boost/concept_check/general.hpp index cd09fb0..c44da49 100644 --- a/include/boost/concept_check/general.hpp +++ b/include/boost/concept_check/general.hpp @@ -6,7 +6,7 @@ # ifdef BOOST_OLD_CONCEPT_SUPPORT # include -# include +# include # endif @@ -54,7 +54,7 @@ namespace boost template struct concept_check_ - : mpl::if_c< + : conditional< concept_checking::has_constraints::value , constraint_check , concept_check diff --git a/include/boost/concept_check/msvc.hpp b/include/boost/concept_check/msvc.hpp index 3968469..23f6b13 100644 --- a/include/boost/concept_check/msvc.hpp +++ b/include/boost/concept_check/msvc.hpp @@ -6,7 +6,7 @@ # ifdef BOOST_OLD_CONCEPT_SUPPORT # include -# include +# include # endif @@ -40,7 +40,7 @@ namespace boost template struct concept_check - : mpl::if_c< + : conditional< concept_checking::has_constraints::value , concept_checking::constraint_check , concept_checking::concept_check_