1 // Copyright David Abrahams 2004. Distributed under the Boost
2 // Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4 #ifndef UNWRAP_WRAPPER_DWA2004723_HPP
5 # define UNWRAP_WRAPPER_DWA2004723_HPP
7 # include <boost/python/detail/prefix.hpp>
8 # include <boost/python/detail/is_wrapper.hpp>
9 # include <boost/mpl/eval_if.hpp>
10 # include <boost/mpl/identity.hpp>
12 namespace boost { namespace python { namespace detail {
15 struct unwrap_wrapper_helper
17 typedef typename T::_wrapper_wrapped_type_ type;
21 struct unwrap_wrapper_
22 : mpl::eval_if<is_wrapper<T>,unwrap_wrapper_helper<T>,mpl::identity<T> >
26 typename unwrap_wrapper_<T>::type*
32 }}} // namespace boost::python::detail
34 #endif // UNWRAP_WRAPPER_DWA2004723_HPP