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