From f57e4fc652d22f46c1431a66893bd3e05e246e42 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Tue, 16 Apr 2002 14:29:30 +0000 Subject: [PATCH] Changes for MPL v2 [SVN r13504] --- include/boost/python/converter/callback.hpp | 12 ++++++------ include/boost/python/converter/from_python_data.hpp | 4 ++-- .../python/converter/lvalue_from_python_chain.hpp | 2 +- include/boost/python/converter/type_id.hpp | 2 +- include/boost/python/copy_mutable_reference.hpp | 4 ++-- include/boost/python/detail/wrap_function.hpp | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/include/boost/python/converter/callback.hpp b/include/boost/python/converter/callback.hpp index 9e9c694f..d11dfcb1 100644 --- a/include/boost/python/converter/callback.hpp +++ b/include/boost/python/converter/callback.hpp @@ -10,7 +10,7 @@ # include # include # include -# include +# include # include # include # include @@ -55,10 +55,10 @@ namespace detail BOOST_STATIC_CONSTANT( bool, ref = is_reference::value); - typedef typename mpl::select_type< + typedef typename mpl::select_if_c< ptr , pointer_callback_from_python - , typename mpl::select_type< + , typename mpl::select_if_c< ref , reference_callback_from_python , rvalue_callback_from_python @@ -113,13 +113,13 @@ namespace detail typedef typename unwrap_reference::type unwrapped_referent; typedef typename unwrap_pointer::type unwrapped_ptr; - typedef typename mpl::select_type< + typedef typename mpl::select_if_c< ptr , pointer_deep_callback_to_python - , typename mpl::select_type< + , typename mpl::select_if_c< ptr_wrapper , pointer_shallow_callback_to_python - , typename mpl::select_type< + , typename mpl::select_if_c< ref_wrapper , reference_callback_to_python , value_callback_to_python diff --git a/include/boost/python/converter/from_python_data.hpp b/include/boost/python/converter/from_python_data.hpp index b0d8a49f..a71c6548 100644 --- a/include/boost/python/converter/from_python_data.hpp +++ b/include/boost/python/converter/from_python_data.hpp @@ -7,7 +7,7 @@ # define FROM_PYTHON_AUX_DATA_DWA2002128_HPP # include -# include +# include # include # include # include @@ -54,7 +54,7 @@ namespace detail , void*, function_ptr, member_ptr, member_function_ptr)) # define BOOST_PYTHON_CHOOSE_LOWER_SIZE(R,P,I,T) \ - typename mpl::select_type< \ + typename mpl::select_if_c< \ sizeof(T) <= target, T, char>::type BOOST_PP_CAT(t,I); # define BOOST_PYTHON_CHOOSE_T(R,P,I,T) T BOOST_PP_CAT(t,I); diff --git a/include/boost/python/converter/lvalue_from_python_chain.hpp b/include/boost/python/converter/lvalue_from_python_chain.hpp index 2a86bcfa..a58b4309 100644 --- a/include/boost/python/converter/lvalue_from_python_chain.hpp +++ b/include/boost/python/converter/lvalue_from_python_chain.hpp @@ -51,7 +51,7 @@ namespace detail typedef typename add_reference::type>::type normalized; - typedef typename mpl::select_type< + typedef typename mpl::select_if_c< ptr , ptr_or_ptr_ref_lvalue_from_python_chain , ref_lvalue_from_python_chain diff --git a/include/boost/python/converter/type_id.hpp b/include/boost/python/converter/type_id.hpp index 015e55e9..f1bfa8a3 100644 --- a/include/boost/python/converter/type_id.hpp +++ b/include/boost/python/converter/type_id.hpp @@ -10,7 +10,7 @@ # include # include # include -# include +# include # include # include # include diff --git a/include/boost/python/copy_mutable_reference.hpp b/include/boost/python/copy_mutable_reference.hpp index f7594ccd..acf170d0 100644 --- a/include/boost/python/copy_mutable_reference.hpp +++ b/include/boost/python/copy_mutable_reference.hpp @@ -6,7 +6,7 @@ #ifndef COPY_MUTABLE_REFERENCE_DWA2002131_HPP # define COPY_MUTABLE_REFERENCE_DWA2002131_HPP # include -# include +# include # include namespace boost { namespace python { @@ -28,7 +28,7 @@ struct copy_mutable_reference template struct apply { - typedef typename mpl::select_type< + typedef typename mpl::select_if_c< detail::is_reference_to_non_const::value , to_python_value , detail::copy_mutable_reference_expects_a_reference_to_non_const_return_type diff --git a/include/boost/python/detail/wrap_function.hpp b/include/boost/python/detail/wrap_function.hpp index 0dcccd70..488f939e 100644 --- a/include/boost/python/detail/wrap_function.hpp +++ b/include/boost/python/detail/wrap_function.hpp @@ -11,7 +11,7 @@ # include # include # include -# include +# include namespace boost { namespace python { namespace detail {