From 90fcd9369d5189d0c55521d7603895d1c5bbbd47 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Tue, 25 Feb 2003 23:11:41 +0000 Subject: [PATCH] MPL names/directory structure refactoring [SVN r17651] --- include/boost/python/args.hpp | 6 ++-- include/boost/python/bases.hpp | 8 +++--- include/boost/python/class.hpp | 26 ++++++++--------- .../boost/python/converter/arg_to_python.hpp | 4 +-- .../boost/python/converter/object_manager.hpp | 10 +++---- .../python/converter/return_from_python.hpp | 4 +-- .../python/detail/copy_ctor_mutates_rhs.hpp | 2 +- include/boost/python/detail/def_helper.hpp | 16 +++++------ include/boost/python/detail/defaults_def.hpp | 2 +- .../boost/python/detail/indirect_traits.hpp | 28 +++++++++---------- include/boost/python/detail/is_auto_ptr.hpp | 2 +- include/boost/python/detail/is_xxx.hpp | 8 +++--- .../python/detail/make_keyword_range_fn.hpp | 2 +- .../boost/python/detail/string_literal.hpp | 12 ++++---- include/boost/python/detail/value_is_xxx.hpp | 6 ++-- include/boost/python/init.hpp | 8 +++--- include/boost/python/make_function.hpp | 6 ++-- .../boost/python/object/make_ptr_instance.hpp | 4 +-- include/boost/python/object/select_holder.hpp | 20 ++++++------- include/boost/python/ptr.hpp | 8 +++--- include/boost/python/to_python_value.hpp | 4 +-- 21 files changed, 93 insertions(+), 93 deletions(-) diff --git a/include/boost/python/args.hpp b/include/boost/python/args.hpp index eaf5818f..b2b76c87 100644 --- a/include/boost/python/args.hpp +++ b/include/boost/python/args.hpp @@ -21,7 +21,7 @@ # include # include -# include +# include # include # include @@ -65,7 +65,7 @@ namespace detail BOOST_STATIC_CONSTANT(bool, is_key = is_keywords::value); BOOST_STATIC_CONSTANT(bool, value = (is_ref & is_key)); - typedef mpl::bool_c type; + typedef mpl::bool_ type; BOOST_PYTHON_MPL_LAMBDA_SUPPORT(1,is_reference_to_keywords,(T)) }; # else @@ -89,7 +89,7 @@ namespace detail sizeof(detail::is_keywords_test( (void (*)(T))0 )) == sizeof(detail::yes_keywords_t))); - typedef mpl::bool_c type; + typedef mpl::bool_ type; BOOST_PYTHON_MPL_LAMBDA_SUPPORT(1,is_reference_to_keywords,(T)) }; # endif diff --git a/include/boost/python/bases.hpp b/include/boost/python/bases.hpp index 356f120a..5b6ea8c3 100644 --- a/include/boost/python/bases.hpp +++ b/include/boost/python/bases.hpp @@ -8,7 +8,7 @@ # include # include # include -# include +# include # include # include @@ -25,13 +25,13 @@ namespace boost { namespace python { { # ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION template struct specifies_bases - : mpl::false_c + : mpl::false_ { }; template < BOOST_PP_ENUM_PARAMS_Z(1, BOOST_PYTHON_MAX_BASES, class Base) > struct specifies_bases< bases< BOOST_PYTHON_BASE_PARAMS > > - : mpl::true_c + : mpl::true_ { }; # else @@ -48,7 +48,7 @@ namespace boost { namespace python { BOOST_STATIC_CONSTANT(bool, non_ref = !is_reference::value); public: BOOST_STATIC_CONSTANT(bool, value = non_ref & (sizeof(is_bases_helper(make())) == 1)); - typedef mpl::bool_c type; + typedef mpl::bool_ type; }; # endif template > diff --git a/include/boost/python/class.hpp b/include/boost/python/class.hpp index 3be45854..a56af61c 100644 --- a/include/boost/python/class.hpp +++ b/include/boost/python/class.hpp @@ -25,9 +25,9 @@ # include # include -# include -# include -# include +# include +# include +# include # include # include @@ -79,12 +79,12 @@ namespace detail struct operator_; // Register to_python converters for a class T. The first argument - // will be mpl::true_c unless noncopyable was specified as a + // will be mpl::true_ unless noncopyable was specified as a // class_<...> template parameter. The 2nd argument is a pointer to // the type of holder that must be created. The 3rd argument is a // reference to the Python type object to be created. template - inline void register_class_to_python(mpl::true_c copyable, SelectHolder selector, T* = 0) + inline void register_class_to_python(mpl::true_ copyable, SelectHolder selector, T* = 0) { typedef typename SelectHolder::type holder; force_instantiate(objects::class_cref_wrapper >()); @@ -92,7 +92,7 @@ namespace detail } template - inline void register_class_to_python(mpl::false_c copyable, SelectHolder selector, T* = 0) + inline void register_class_to_python(mpl::false_ copyable, SelectHolder selector, T* = 0) { SelectHolder::register_(); } @@ -131,7 +131,7 @@ namespace detail static void must_be_derived_class_member(Default const&) { - typedef typename assertion > >::failed test0; + typedef typename assertion > >::failed test0; typedef typename assertion >::failed test1; typedef typename assertion >::failed test2; not_a_derived_class_member(Fn()); @@ -398,7 +398,7 @@ class class_ : public objects::class_base , helper.policies(), helper.keywords()) , helper.doc()); - this->def_default(name, fn, helper, mpl::bool_c()); + this->def_default(name, fn, helper, mpl::bool_()); } // @@ -411,7 +411,7 @@ class class_ : public objects::class_base char const* name , Fn fn , Helper const& helper - , mpl::bool_c) + , mpl::bool_) { detail::error::virtual_function_default::must_be_derived_class_member( helper.default_implementation()); @@ -424,7 +424,7 @@ class class_ : public objects::class_base } template - inline void def_default(char const*, Fn, Helper const&, mpl::bool_c) + inline void def_default(char const*, Fn, Helper const&, mpl::bool_) { } // @@ -474,7 +474,7 @@ inline void class_::register_() const objects::register_class_from_python(); detail::register_class_to_python( - mpl::bool_c() + mpl::bool_() # if BOOST_WORKAROUND(__MWERKS__, <= 0x2407) , holder_selector::execute((held_type*)0) # elif BOOST_WORKAROUND(BOOST_MSVC, <= 1300) @@ -519,7 +519,7 @@ namespace detail { template struct has_noncopyable - : mpl::logical_or< + : mpl::or_< is_same , is_same , is_same @@ -530,7 +530,7 @@ namespace detail template struct select_held_type : mpl::if_< - mpl::logical_or< + mpl::or_< specifies_bases , is_same > diff --git a/include/boost/python/converter/arg_to_python.hpp b/include/boost/python/converter/arg_to_python.hpp index 4d654eb3..3d62eccd 100755 --- a/include/boost/python/converter/arg_to_python.hpp +++ b/include/boost/python/converter/arg_to_python.hpp @@ -31,7 +31,7 @@ # include -# include +# include namespace boost { namespace python { namespace converter { @@ -116,7 +116,7 @@ namespace detail , shared_ptr_arg_to_python , typename mpl::if_< - mpl::logical_or< + mpl::or_< is_function , python::detail::is_pointer_to_function , is_member_function_pointer diff --git a/include/boost/python/converter/object_manager.hpp b/include/boost/python/converter/object_manager.hpp index f93dd3fd..7c8c9084 100755 --- a/include/boost/python/converter/object_manager.hpp +++ b/include/boost/python/converter/object_manager.hpp @@ -12,7 +12,7 @@ # include # include # include -# include +# include // Facilities for dealing with types which always manage Python // objects. Some examples are object, list, str, et. al. Different @@ -118,14 +118,14 @@ struct object_manager_traits template struct is_object_manager - : mpl::bool_c::is_specialized> + : mpl::bool_::is_specialized> { }; # ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION template struct is_reference_to_object_manager - : mpl::false_c + : mpl::false_ { }; @@ -197,7 +197,7 @@ namespace detail template struct is_reference_to_object_manager_nonref - : mpl::false_c + : mpl::false_ { }; @@ -211,7 +211,7 @@ namespace detail == sizeof(detail::yes_reference_to_object_manager) ) ); - typedef mpl::bool_c type; + typedef mpl::bool_ type; }; } diff --git a/include/boost/python/converter/return_from_python.hpp b/include/boost/python/converter/return_from_python.hpp index 72527b0b..69c7a71b 100755 --- a/include/boost/python/converter/return_from_python.hpp +++ b/include/boost/python/converter/return_from_python.hpp @@ -14,8 +14,8 @@ # include # include # include -# include -# include +# include +# include namespace boost { namespace python { namespace converter { diff --git a/include/boost/python/detail/copy_ctor_mutates_rhs.hpp b/include/boost/python/detail/copy_ctor_mutates_rhs.hpp index 434df76c..b1613924 100755 --- a/include/boost/python/detail/copy_ctor_mutates_rhs.hpp +++ b/include/boost/python/detail/copy_ctor_mutates_rhs.hpp @@ -7,7 +7,7 @@ # define COPY_CTOR_MUTATES_RHS_DWA2003219_HPP #include -#include +#include namespace boost { namespace python { namespace detail { diff --git a/include/boost/python/detail/def_helper.hpp b/include/boost/python/detail/def_helper.hpp index d78ddb81..98933bd4 100644 --- a/include/boost/python/detail/def_helper.hpp +++ b/include/boost/python/detail/def_helper.hpp @@ -10,9 +10,9 @@ # include # include # include -# include -# include -# include +# include +# include +# include # include # include # include @@ -98,8 +98,8 @@ namespace detail struct doc_extract : tuple_extract< Tuple - , mpl::logical_not< - mpl::logical_or< + , mpl::not_< + mpl::or_< is_reference_to_class , is_reference_to_member_function_pointer > @@ -118,10 +118,10 @@ namespace detail struct policy_extract : tuple_extract< Tuple - , mpl::logical_and< - mpl::logical_not > + , mpl::and_< + mpl::not_ > , is_reference_to_class - , mpl::logical_not > + , mpl::not_ > > > { diff --git a/include/boost/python/detail/defaults_def.hpp b/include/boost/python/detail/defaults_def.hpp index efb1c395..ac963cb6 100644 --- a/include/boost/python/detail/defaults_def.hpp +++ b/include/boost/python/detail/defaults_def.hpp @@ -102,7 +102,7 @@ namespace detail // template // inline void // define_stub_function( - // char const* name, OverloadsT s, NameSpaceT& name_space, mpl::int_c) + // char const* name, OverloadsT s, NameSpaceT& name_space, mpl::int_) // { // name_space.def(name, &OverloadsT::func_N); // } diff --git a/include/boost/python/detail/indirect_traits.hpp b/include/boost/python/detail/indirect_traits.hpp index d53e396c..3f6a0098 100644 --- a/include/boost/python/detail/indirect_traits.hpp +++ b/include/boost/python/detail/indirect_traits.hpp @@ -17,7 +17,7 @@ # include # include # include -# include +# include # include # ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION @@ -48,7 +48,7 @@ struct is_reference_to_const # endif template -struct is_reference_to_function : mpl::bool_c +struct is_reference_to_function : mpl::bool_ { }; @@ -58,7 +58,7 @@ struct is_reference_to_function : is_function }; template -struct is_pointer_to_function : mpl::bool_c +struct is_pointer_to_function : mpl::bool_ { BOOST_STATIC_CONSTANT(bool, value = false); }; @@ -71,7 +71,7 @@ struct is_pointer_to_function : is_function }; template -struct is_reference_to_member_function_pointer_impl : mpl::bool_c +struct is_reference_to_member_function_pointer_impl : mpl::bool_ { }; @@ -100,14 +100,14 @@ struct is_reference_to_function_pointer_aux typename remove_reference::type >::type >::value)); - typedef mpl::bool_c type; + typedef mpl::bool_ type; }; template struct is_reference_to_function_pointer : mpl::if_c< is_reference_to_function::value - , mpl::bool_c + , mpl::bool_ , is_reference_to_function_pointer_aux >::type { @@ -191,7 +191,7 @@ struct is_reference_to_class >::value >::value) ); - typedef mpl::bool_c type; + typedef mpl::bool_ type; BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_reference_to_class,(T)) }; @@ -267,7 +267,7 @@ struct is_reference_to_function_aux template struct is_reference_to_function - : mpl::if_, is_reference_to_function_aux, mpl::bool_c >::type + : mpl::if_, is_reference_to_function_aux, mpl::bool_ >::type { }; @@ -278,12 +278,12 @@ struct is_pointer_to_function_aux BOOST_STATIC_CONSTANT( bool, value = sizeof(::boost::type_traits::is_function_ptr_tester(t)) == sizeof(::boost::type_traits::yes_type)); - typedef mpl::bool_c type; + typedef mpl::bool_ type; }; template struct is_pointer_to_function - : mpl::if_, is_pointer_to_function_aux, mpl::bool_c >::type + : mpl::if_, is_pointer_to_function_aux, mpl::bool_ >::type { BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_pointer_to_function,(T)) }; @@ -419,7 +419,7 @@ struct is_reference_to_function_pointer : mpl::if_< is_reference , is_pointer_to_function_aux - , mpl::bool_c + , mpl::bool_ >::type { BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_reference_to_function_pointer,(T)) @@ -442,7 +442,7 @@ struct is_pointer_to_member_function_aux BOOST_STATIC_CONSTANT( bool, value = sizeof((member_function_pointer_helper)(t)) == sizeof(inner_yes_type)); - typedef mpl::bool_c type; + typedef mpl::bool_ type; }; template @@ -450,7 +450,7 @@ struct is_reference_to_member_function_pointer : mpl::if_< is_reference , is_pointer_to_member_function_aux - , mpl::bool_c + , mpl::bool_ >::type { BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_reference_to_member_function_pointer,(T)) @@ -469,7 +469,7 @@ struct is_reference_to_class = (is_reference::value & (sizeof(reference_to_class_helper(t)) == sizeof(inner_yes_type))) ); - typedef mpl::bool_c type; + typedef mpl::bool_ type; BOOST_MPL_AUX_LAMBDA_SUPPORT(1,is_reference_to_class,(T)) }; diff --git a/include/boost/python/detail/is_auto_ptr.hpp b/include/boost/python/detail/is_auto_ptr.hpp index 9602a8d4..986a6309 100644 --- a/include/boost/python/detail/is_auto_ptr.hpp +++ b/include/boost/python/detail/is_auto_ptr.hpp @@ -20,7 +20,7 @@ BOOST_PYTHON_IS_XXX_DEF(auto_ptr, std::auto_ptr, 1) # else template -struct is_auto_ptr : mpl::false_c +struct is_auto_ptr : mpl::false_ { }; diff --git a/include/boost/python/detail/is_xxx.hpp b/include/boost/python/detail/is_xxx.hpp index 6510adc8..ad888b84 100644 --- a/include/boost/python/detail/is_xxx.hpp +++ b/include/boost/python/detail/is_xxx.hpp @@ -7,7 +7,7 @@ # define IS_XXX_DWA2003224_HPP # include -# include +# include # include # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) @@ -35,14 +35,14 @@ struct is_##name \ = !is_reference::value \ & (sizeof(test(dummy, 0)) == sizeof(yes))); \ \ - typedef mpl::bool_c type; \ + typedef mpl::bool_ type; \ }; # else # define BOOST_PYTHON_IS_XXX_DEF(name, qualified_name, nargs) \ template \ -struct is_##name : mpl::false_c \ +struct is_##name : mpl::false_ \ { \ }; \ \ @@ -50,7 +50,7 @@ template < BOOST_PP_ENUM_PARAMS_Z(1, nargs, class T) > \ struct is_##name< \ qualified_name< BOOST_PP_ENUM_PARAMS_Z(1, nargs, T) > \ > \ - : mpl::true_c \ + : mpl::true_ \ { \ }; diff --git a/include/boost/python/detail/make_keyword_range_fn.hpp b/include/boost/python/detail/make_keyword_range_fn.hpp index b7d78fdd..9c749292 100644 --- a/include/boost/python/detail/make_keyword_range_fn.hpp +++ b/include/boost/python/detail/make_keyword_range_fn.hpp @@ -25,7 +25,7 @@ template object make_keyword_range_function(F f, Policies const& policies, keyword_range const& kw) { return detail::make_function_aux( - f, policies, args_from_python(), detail::get_signature(f), kw, mpl::int_c<0>()); + f, policies, args_from_python(), detail::get_signature(f), kw, mpl::int_<0>()); } // Builds an '__init__' function which inserts the given Holder type diff --git a/include/boost/python/detail/string_literal.hpp b/include/boost/python/detail/string_literal.hpp index 0236a14f..ee8cc0b6 100644 --- a/include/boost/python/detail/string_literal.hpp +++ b/include/boost/python/detail/string_literal.hpp @@ -10,19 +10,19 @@ # include # include # include -# include +# include namespace boost { namespace python { namespace detail { # ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION template -struct is_string_literal : mpl::false_c +struct is_string_literal : mpl::false_ { }; # if !defined(__MWERKS__) || __MWERKS__ > 0x2407 template -struct is_string_literal : mpl::true_c +struct is_string_literal : mpl::true_ { }; @@ -31,7 +31,7 @@ struct is_string_literal : mpl::true_c // This compiler mistakenly gets the type of string literals as char* // instead of char[NN]. template <> -struct is_string_literal : mpl::true_c +struct is_string_literal : mpl::true_ { }; # endif @@ -63,7 +63,7 @@ struct string_literal_helper BOOST_STATIC_CONSTANT( bool, value = sizeof(self::check(x)) == sizeof(yes_string_literal)); - typedef mpl::bool_c type; + typedef mpl::bool_ type; }; }; @@ -71,7 +71,7 @@ template <> struct string_literal_helper { template - struct apply : mpl::false_c + struct apply : mpl::false_ { }; }; diff --git a/include/boost/python/detail/value_is_xxx.hpp b/include/boost/python/detail/value_is_xxx.hpp index 5621ad55..f0a9a11c 100644 --- a/include/boost/python/detail/value_is_xxx.hpp +++ b/include/boost/python/detail/value_is_xxx.hpp @@ -7,7 +7,7 @@ # define VALUE_IS_XXX_DWA2003224_HPP # include -# include +# include # include # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) @@ -35,7 +35,7 @@ struct value_is_##name \ bool, value \ = (sizeof(test(dummy, 0)) == sizeof(yes))); \ \ - typedef mpl::bool_c type; \ + typedef mpl::bool_ type; \ }; # else @@ -54,7 +54,7 @@ struct value_is_##name \ typename remove_reference::type \ >::type \ >::value); \ - typedef mpl::bool_c type; \ + typedef mpl::bool_ type; \ \ }; diff --git a/include/boost/python/init.hpp b/include/boost/python/init.hpp index 76aa9b33..bfc398d6 100644 --- a/include/boost/python/init.hpp +++ b/include/boost/python/init.hpp @@ -21,7 +21,7 @@ #include #include #include -#include +#include # include @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include @@ -104,7 +104,7 @@ namespace detail BOOST_STATIC_CONSTANT( bool, value = sizeof(f(t())) == sizeof(::boost::type_traits::yes_type)); - typedef mpl::bool_c type; + typedef mpl::bool_ type; BOOST_PYTHON_MPL_LAMBDA_SUPPORT(1,is_optional,(T)) }; @@ -127,7 +127,7 @@ namespace detail template struct is_optional : is_optional_impl { - typedef mpl::bool_c::value> type; + typedef mpl::bool_::value> type; BOOST_PYTHON_MPL_LAMBDA_SUPPORT(1,is_optional,(T)) }; #endif // defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) diff --git a/include/boost/python/make_function.hpp b/include/boost/python/make_function.hpp index 99bc0253..9632bbd5 100644 --- a/include/boost/python/make_function.hpp +++ b/include/boost/python/make_function.hpp @@ -13,7 +13,7 @@ # include # include -# include +# include namespace boost { namespace python { @@ -41,7 +41,7 @@ namespace detail // As above, except that it accepts argument keywords. NumKeywords // is used only for a compile-time assertion to make sure the user // doesn't pass more keywords than the function can accept. To - // disable all checking, pass mpl::int_c<0> for NumKeywords. + // disable all checking, pass mpl::int_<0> for NumKeywords. template object make_function_aux( F f @@ -93,7 +93,7 @@ object make_function(F f, CallPolicies const& policies, Keywords const& keywords , detail::args_from_python() , detail::get_signature(f) , keywords.range() - , mpl::int_c() + , mpl::int_() ); } diff --git a/include/boost/python/object/make_ptr_instance.hpp b/include/boost/python/object/make_ptr_instance.hpp index 40debeaa..0b07ae26 100644 --- a/include/boost/python/object/make_ptr_instance.hpp +++ b/include/boost/python/object/make_ptr_instance.hpp @@ -41,14 +41,14 @@ struct make_ptr_instance } template - static inline PyTypeObject* get_derived_class_object(mpl::true_c, U const volatile* x) + static inline PyTypeObject* get_derived_class_object(mpl::true_, U const volatile* x) { converter::registration const* r = converter::registry::query(type_info(typeid(*x))); return r ? r->m_class_object : 0; } template - static inline PyTypeObject* get_derived_class_object(mpl::false_c, U*) + static inline PyTypeObject* get_derived_class_object(mpl::false_, U*) { return 0; } diff --git a/include/boost/python/object/select_holder.hpp b/include/boost/python/object/select_holder.hpp index ca2eeaa8..87bc06da 100644 --- a/include/boost/python/object/select_holder.hpp +++ b/include/boost/python/object/select_holder.hpp @@ -18,9 +18,9 @@ # include -# include +# include # include -# include +# include # include # include @@ -49,7 +49,7 @@ namespace detail // constructor. Normally this means U is a virtual function // dispatcher subclass for T. template - void check_default_constructible(T*, U*, mpl::bool_c) + void check_default_constructible(T*, U*, mpl::bool_) { python::detail::force_instantiate( sizeof(specify_init_arguments_or_no_init_for_class_(U((::PyObject*)0))) @@ -59,7 +59,7 @@ namespace detail // Handles the "normal" case where T is held directly and // has_back_reference is not specialized. template - void check_default_constructible(T*, T*, mpl::bool_c) + void check_default_constructible(T*, T*, mpl::bool_) { python::detail::force_instantiate( sizeof(specify_init_arguments_or_no_init_for_class_(T())) @@ -94,7 +94,7 @@ namespace detail static void assert_default_constructible() { - detail::check_default_constructible((T*)0,(Held*)0,mpl::bool_c()); + detail::check_default_constructible((T*)0,(Held*)0,mpl::bool_()); } typedef typename mpl::if_c< @@ -116,7 +116,7 @@ namespace detail static void assert_default_constructible() { - detail::check_default_constructible((T*)0,(pointee*)0,mpl::bool_c()); + detail::check_default_constructible((T*)0,(pointee*)0,mpl::bool_()); } typedef typename mpl::if_c< @@ -127,13 +127,13 @@ namespace detail static inline void register_() { - select_pointer_holder::register_(mpl::bool_c()); + select_pointer_holder::register_(mpl::bool_()); } static type* get() { return 0; } private: - static inline void register_(mpl::true_c) + static inline void register_(mpl::true_) { } @@ -145,7 +145,7 @@ namespace detail } }; - static inline void register_(mpl::false_c) + static inline void register_(mpl::false_) { python::detail::force_instantiate( objects::class_value_wrapper >()); @@ -212,7 +212,7 @@ struct select_holder is_same , detail::select_value_holder , typename mpl::if_< - mpl::logical_or< + mpl::or_< is_same , is_base_and_derived > diff --git a/include/boost/python/ptr.hpp b/include/boost/python/ptr.hpp index 3fdef0f4..dd37f58b 100644 --- a/include/boost/python/ptr.hpp +++ b/include/boost/python/ptr.hpp @@ -15,7 +15,7 @@ # endif # include -# include +# include namespace boost { namespace python { @@ -40,13 +40,13 @@ inline pointer_wrapper ptr(T t) # ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION template class is_pointer_wrapper - : public mpl::false_c + : public mpl::false_ { }; template class is_pointer_wrapper > - : public mpl::true_c + : public mpl::true_ { }; @@ -110,7 +110,7 @@ class is_pointer_wrapper bool, value = ( sizeof(detail::is_pointer_wrapper_test(boost::type())) == sizeof(detail::yes_pointer_wrapper_t))); - typedef mpl::bool_c type; + typedef mpl::bool_ type; }; template diff --git a/include/boost/python/to_python_value.hpp b/include/boost/python/to_python_value.hpp index ee49849d..4af5c6f8 100644 --- a/include/boost/python/to_python_value.hpp +++ b/include/boost/python/to_python_value.hpp @@ -21,7 +21,7 @@ # include # include -# include +# include namespace boost { namespace python { @@ -80,7 +80,7 @@ struct to_python_value detail::value_is_shared_ptr , detail::shared_ptr_to_python_value , typename mpl::if_< - mpl::logical_or< + mpl::or_< converter::is_object_manager , converter::is_reference_to_object_manager >