From 1c346b253133d06afa0be9d46e4ce82caa91207a 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/python/ptr.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/python/ptr.hpp b/include/boost/python/ptr.hpp index 5f8ad2d0..3fdef0f4 100644 --- a/include/boost/python/ptr.hpp +++ b/include/boost/python/ptr.hpp @@ -15,6 +15,7 @@ # endif # include +# include namespace boost { namespace python { @@ -39,16 +40,14 @@ inline pointer_wrapper ptr(T t) # ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION template class is_pointer_wrapper + : public mpl::false_c { - public: - BOOST_STATIC_CONSTANT(bool, value = false); }; template class is_pointer_wrapper > + : public mpl::true_c { - public: - BOOST_STATIC_CONSTANT(bool, value = true); }; template @@ -109,8 +108,9 @@ class is_pointer_wrapper public: BOOST_STATIC_CONSTANT( bool, value = ( - sizeof(detail::is_pointer_wrapper_test(boost::type())) + sizeof(detail::is_pointer_wrapper_test(boost::type())) == sizeof(detail::yes_pointer_wrapper_t))); + typedef mpl::bool_c type; }; template