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