2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-20 04:42:28 +00:00

Changes for MPL v2

[SVN r13504]
This commit is contained in:
Dave Abrahams
2002-04-16 14:29:30 +00:00
parent c3fb3143b2
commit be6b9fa48d
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
#ifndef MANAGE_NEW_OBJECT_DWA200222_HPP
# define MANAGE_NEW_OBJECT_DWA200222_HPP
# include <boost/python/detail/indirect_traits.hpp>
# include <boost/mpl/select_type.hpp>
# include <boost/mpl/select_if.hpp>
# include <boost/python/to_python_indirect.hpp>
# include <boost/type_traits/composite_traits.hpp>
@@ -29,7 +29,7 @@ struct manage_new_object
template <class T>
struct apply
{
typedef typename mpl::select_type<
typedef typename mpl::select_if_c<
boost::is_pointer<T>::value
, to_python_indirect<T, detail::make_owning_holder>
, detail::manage_new_object_requires_a_pointer_return_type<T>

View File

@@ -78,7 +78,7 @@ struct non_polymorphic_id_generator
template <class T>
struct dynamic_id_generator
{
typedef typename mpl::select_type<
typedef typename mpl::select_if_c<
is_polymorphic<T>::value
, polymorphic_id_generator<T>
, non_polymorphic_id_generator<T> >::type type;
@@ -131,7 +131,7 @@ struct cast_generator
is_base_and_derived<Target,Source>::value
));
typedef typename mpl::select_type<
typedef typename mpl::select_if_c<
is_upcast
# if defined(__MWERKS__) && __MWERKS__ <= 0x2406
// grab a few more implicit_cast cases for CodeWarrior