From bfd7f71601179c8f3fee544d635654ca1f79c76c Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Thu, 2 Sep 2004 15:41:37 +0000 Subject: [PATCH] merge new MPL version from 'mplbook' branch [SVN r24874] --- include/boost/python/data_members.hpp | 2 +- include/boost/python/detail/caller.hpp | 4 ++-- include/boost/python/detail/defaults_gen.hpp | 10 +++++----- include/boost/python/detail/unwrap_wrapper.hpp | 4 ++-- include/boost/python/init.hpp | 8 ++++---- include/boost/python/object/class_metadata.hpp | 6 +++--- include/boost/python/object/make_holder.hpp | 4 ++-- include/boost/python/operators.hpp | 4 ++-- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/include/boost/python/data_members.hpp b/include/boost/python/data_members.hpp index 85f481ff..a678e230 100644 --- a/include/boost/python/data_members.hpp +++ b/include/boost/python/data_members.hpp @@ -28,7 +28,7 @@ # include # endif -# include +# include # include # include diff --git a/include/boost/python/detail/caller.hpp b/include/boost/python/detail/caller.hpp index 081a7b39..1054b6e2 100644 --- a/include/boost/python/detail/caller.hpp +++ b/include/boost/python/detail/caller.hpp @@ -32,7 +32,7 @@ # include # include -# include +# include # include # include # include @@ -62,7 +62,7 @@ typedef int void_result_to_python; // converting the result to python. template struct select_result_converter - : mpl::apply_if< + : mpl::eval_if< is_same , mpl::identity , mpl::apply1 diff --git a/include/boost/python/detail/defaults_gen.hpp b/include/boost/python/detail/defaults_gen.hpp index 67bc5666..45274957 100644 --- a/include/boost/python/detail/defaults_gen.hpp +++ b/include/boost/python/detail/defaults_gen.hpp @@ -25,7 +25,7 @@ #include #include #include -#include +#include #include namespace boost { namespace python { @@ -119,7 +119,7 @@ namespace detail #define BOOST_PYTHON_TYPEDEF_GEN(z, index, data) \ typedef typename ::boost::mpl::next::type \ BOOST_PP_CAT(iter, BOOST_PP_INC(index)); \ - typedef typename ::boost::mpl::apply0::type \ + typedef typename ::boost::mpl::deref::type \ BOOST_PP_CAT(T, index); #define BOOST_PYTHON_FUNC_WRAPPER_GEN(z, index, data) \ @@ -145,7 +145,7 @@ namespace detail struct gen \ { \ typedef typename ::boost::mpl::begin::type rt_iter; \ - typedef typename ::boost::mpl::apply0::type RT; \ + typedef typename ::boost::mpl::deref::type RT; \ typedef typename ::boost::mpl::next::type iter0; \ \ BOOST_PP_REPEAT_2ND( \ @@ -184,10 +184,10 @@ namespace detail struct gen \ { \ typedef typename ::boost::mpl::begin::type rt_iter; \ - typedef typename ::boost::mpl::apply0::type RT; \ + typedef typename ::boost::mpl::deref::type RT; \ \ typedef typename ::boost::mpl::next::type class_iter; \ - typedef typename ::boost::mpl::apply0::type ClassT; \ + typedef typename ::boost::mpl::deref::type ClassT; \ typedef typename ::boost::mpl::next::type iter0; \ \ BOOST_PP_REPEAT_2ND( \ diff --git a/include/boost/python/detail/unwrap_wrapper.hpp b/include/boost/python/detail/unwrap_wrapper.hpp index 7ae5b233..a0f6a65a 100755 --- a/include/boost/python/detail/unwrap_wrapper.hpp +++ b/include/boost/python/detail/unwrap_wrapper.hpp @@ -7,7 +7,7 @@ # include # include # if defined(BOOST_PYTHON_NO_SFINAE) -# include +# include # include # else # include @@ -23,7 +23,7 @@ struct unwrap_wrapper_helper }; template -typename mpl::apply_if,unwrap_wrapper_helper,mpl::identity >::type* +typename mpl::eval_if,unwrap_wrapper_helper,mpl::identity >::type* unwrap_wrapper(T*) { return 0; diff --git a/include/boost/python/init.hpp b/include/boost/python/init.hpp index 0bf371ae..ce52531c 100644 --- a/include/boost/python/init.hpp +++ b/include/boost/python/init.hpp @@ -17,7 +17,7 @@ #include #include -#include +#include #include #include #include @@ -269,20 +269,20 @@ class init : public init_base > typedef detail::type_list signature_; typedef detail::is_optional< - typename mpl::apply_if< + typename mpl::eval_if< mpl::empty , mpl::false_ , mpl::back >::type > back_is_optional; - typedef typename mpl::apply_if< + typedef typename mpl::eval_if< back_is_optional , mpl::back , mpl::vector0<> >::type optional_args; - typedef typename mpl::apply_if< + typedef typename mpl::eval_if< back_is_optional , mpl::if_< mpl::empty diff --git a/include/boost/python/object/class_metadata.hpp b/include/boost/python/object/class_metadata.hpp index ef56d560..c29787fb 100755 --- a/include/boost/python/object/class_metadata.hpp +++ b/include/boost/python/object/class_metadata.hpp @@ -23,7 +23,7 @@ # include # include -# include +# include # include # include # include @@ -162,7 +162,7 @@ struct class_metadata // Compute the "wrapped type", that is, if held_type is a smart // pointer, we're talking about the pointee. - typedef typename mpl::apply_if< + typedef typename mpl::eval_if< use_value_holder , mpl::identity , pointee @@ -176,7 +176,7 @@ struct class_metadata > use_back_reference; // Select the holder. - typedef typename mpl::apply_if< + typedef typename mpl::eval_if< use_back_reference , mpl::if_< use_value_holder diff --git a/include/boost/python/object/make_holder.hpp b/include/boost/python/object/make_holder.hpp index f540b175..83c18582 100644 --- a/include/boost/python/object/make_holder.hpp +++ b/include/boost/python/object/make_holder.hpp @@ -17,7 +17,7 @@ # include # include -# include +# include # include # include @@ -64,7 +64,7 @@ struct make_holder typedef typename mpl::begin::type iter0; # define BOOST_PP_LOCAL_MACRO(n) \ - typedef typename mpl::apply0::type t##n; \ + typedef typename mpl::deref::type t##n; \ typedef typename forward::type f##n; \ typedef typename mpl::next::type \ BOOST_PP_CAT(iter,BOOST_PP_INC(n)); // Next iterator type diff --git a/include/boost/python/operators.hpp b/include/boost/python/operators.hpp index 20eb8af4..d10a0094 100644 --- a/include/boost/python/operators.hpp +++ b/include/boost/python/operators.hpp @@ -13,7 +13,7 @@ # include # include # include -# include +# include # include # include # include @@ -128,7 +128,7 @@ namespace detail template void visit(ClassT& cl) const { - typedef typename mpl::apply_if< + typedef typename mpl::eval_if< is_same , mpl::if_< is_same