From 37a6537a5b52f20b5c7fa0c7a0100c36a165a62c Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 25 Feb 2003 00:57:33 +0000 Subject: [PATCH] fix metafunctions for MPL [SVN r17621] --- include/boost/ref.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/include/boost/ref.hpp b/include/boost/ref.hpp index a8d996c..c8a46c3 100644 --- a/include/boost/ref.hpp +++ b/include/boost/ref.hpp @@ -7,6 +7,7 @@ # include # include +# include // // ref.hpp - ref/cref, useful helper functions @@ -73,16 +74,14 @@ template inline reference_wrapper BOOST_REF_CONST cref(T const # ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION template class is_reference_wrapper + : public mpl::false_c { - public: - BOOST_STATIC_CONSTANT(bool, value = false); }; template class is_reference_wrapper > + : public mpl::true_c { - public: - BOOST_STATIC_CONSTANT(bool, value = true); }; template @@ -144,8 +143,10 @@ class is_reference_wrapper public: BOOST_STATIC_CONSTANT( bool, value = ( - sizeof(detail::is_reference_wrapper_test(type())) + sizeof(detail::is_reference_wrapper_test(type())) == sizeof(detail::yes_reference_wrapper_t))); + + typedef ::boost::mpl::bool_c type; }; template