diff --git a/include/boost/python/converter/unwrapper_select.hpp b/include/boost/python/converter/unwrapper_select.hpp new file mode 100644 index 00000000..d60923af --- /dev/null +++ b/include/boost/python/converter/unwrapper_select.hpp @@ -0,0 +1,33 @@ +// Copyright David Abrahams 2001. 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 UNWRAPPER_SELECT_DWA20011229_HPP +# define UNWRAPPER_SELECT_DWA20011229_HPP + +namespace boost { namespace python { namespace converter { + +template struct unwrapper; + +// Select the type returned by unwrapper objects when unwrapping a +// given type. When unwrapping T const&, the unwrapper returns T&, so +// that the same unwrapper object can be used for both conversions (on +// a conforming compiler). +template +struct unwrapper_select +{ + typedef unwrapper type; +}; + +# ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION +template +struct unwrapper_select +{ + typedef unwrapper type; +}; +# endif + +}}} // namespace boost::python::converter + +#endif // UNWRAPPER_SELECT_DWA20011229_HPP