Chris@16: // Copyright David Abrahams 2004. Distributed under the Boost Chris@16: // Software License, Version 1.0. (See accompanying Chris@16: // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: #ifndef UNWRAP_WRAPPER_DWA2004723_HPP Chris@16: # define UNWRAP_WRAPPER_DWA2004723_HPP Chris@16: Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: Chris@16: namespace boost { namespace python { namespace detail { Chris@16: Chris@16: template Chris@16: struct unwrap_wrapper_helper Chris@16: { Chris@16: typedef typename T::_wrapper_wrapped_type_ type; Chris@16: }; Chris@16: Chris@16: template Chris@16: struct unwrap_wrapper_ Chris@16: : mpl::eval_if,unwrap_wrapper_helper,mpl::identity > Chris@16: {}; Chris@16: Chris@16: template Chris@16: typename unwrap_wrapper_::type* Chris@16: unwrap_wrapper(T*) Chris@16: { Chris@16: return 0; Chris@16: } Chris@16: Chris@16: }}} // namespace boost::python::detail Chris@16: Chris@16: #endif // UNWRAP_WRAPPER_DWA2004723_HPP