From a9a8595b79ed7b8610f8b24fb1efa15dae3dbf14 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/object/class_converters.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/boost/python/object/class_converters.hpp b/include/boost/python/object/class_converters.hpp index 86fcd64b..fa35e1de 100644 --- a/include/boost/python/object/class_converters.hpp +++ b/include/boost/python/object/class_converters.hpp @@ -7,7 +7,7 @@ # define CLASS_CONVERTERS_DWA2002119_HPP # include -# include +# include # include # include # include @@ -44,8 +44,7 @@ struct do_nothing template struct register_base_of { - // Ignored is needed because mpl::for_each is still actually - // accumulate. We're not using any state so it just sits there. + // We're not using any state so we supply Ingored argument template struct apply { @@ -60,7 +59,7 @@ struct register_base_of register_conversion(false); // Register the down-cast, if appropriate. - mpl::select_type< + mpl::select_if_c< is_polymorphic::value , register_downcast , do_nothing @@ -85,7 +84,7 @@ inline void register_class_from_python(Derived* = 0, Bases* = 0) register_dynamic_id(); // register each base in the sequence - mpl::for_each >::execute(); + mpl::fold >::execute(); } }}} // namespace boost::python::object