From 1201761ff399b73378d5a70a88cbd86bfb99938e Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 2 Jan 2002 17:53:34 +0000 Subject: [PATCH] initial checkin [SVN r12198] --- .../python/converter/unwrapper_select.hpp | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 include/boost/python/converter/unwrapper_select.hpp 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