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