diff --git a/include/boost/python/copy_mutable_reference.hpp b/include/boost/python/copy_mutable_reference.hpp deleted file mode 100644 index f7594ccd..00000000 --- a/include/boost/python/copy_mutable_reference.hpp +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright David Abrahams 2002. Permission to copy, use, -// modify, sell and distribute this software is granted provided this -// copyright notice appears in all copies. This software is provided -// "as is" without express or implied warranty, and with no claim as -// to its suitability for any purpose. -#ifndef COPY_MUTABLE_REFERENCE_DWA2002131_HPP -# define COPY_MUTABLE_REFERENCE_DWA2002131_HPP -# include -# include -# include - -namespace boost { namespace python { - -namespace detail -{ - template - struct copy_mutable_reference_expects_a_reference_to_non_const_return_type -# if defined(__GNUC__) && __GNUC__ >= 3 || defined(__EDG__) - {} -# endif - ; -} - -template struct to_python_value; - -struct copy_mutable_reference -{ - template - struct apply - { - typedef typename mpl::select_type< - detail::is_reference_to_non_const::value - , to_python_value - , detail::copy_mutable_reference_expects_a_reference_to_non_const_return_type - >::type type; - }; -}; - -}} // namespace boost::python - -#endif // COPY_MUTABLE_REFERENCE_DWA2002131_HPP diff --git a/test/bienstman3.cpp b/test/bienstman3.cpp index 60ddc385..eb2bb30a 100644 --- a/test/bienstman3.cpp +++ b/test/bienstman3.cpp @@ -1,6 +1,5 @@ #include #include -#include struct V { @@ -15,19 +14,17 @@ struct B BOOST_PYTHON_MODULE_INIT(bienstman3_ext) { using namespace boost::python; - using boost::mpl::type_list; module m("bienstman3_ext"); m - .add( class_("V") ) .add( class_("B") - .def_init(type_list()) + .def_init(args()) ) ; } diff --git a/test/test_pointer_adoption.cpp b/test/test_pointer_adoption.cpp index 33cd4dc2..74c869ed 100644 --- a/test/test_pointer_adoption.cpp +++ b/test/test_pointer_adoption.cpp @@ -8,10 +8,8 @@ #include #include #include -#include using namespace boost::python; -using boost::mpl::type_list; int a_instances = 0;