annotate DEPENDENCIES/generic/include/boost/python/detail/unwrap_wrapper.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // Copyright David Abrahams 2004. Distributed under the Boost
Chris@16 2 // Software License, Version 1.0. (See accompanying
Chris@16 3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 4 #ifndef UNWRAP_WRAPPER_DWA2004723_HPP
Chris@16 5 # define UNWRAP_WRAPPER_DWA2004723_HPP
Chris@16 6
Chris@16 7 # include <boost/python/detail/prefix.hpp>
Chris@16 8 # include <boost/python/detail/is_wrapper.hpp>
Chris@16 9 # include <boost/mpl/eval_if.hpp>
Chris@16 10 # include <boost/mpl/identity.hpp>
Chris@16 11
Chris@16 12 namespace boost { namespace python { namespace detail {
Chris@16 13
Chris@16 14 template <class T>
Chris@16 15 struct unwrap_wrapper_helper
Chris@16 16 {
Chris@16 17 typedef typename T::_wrapper_wrapped_type_ type;
Chris@16 18 };
Chris@16 19
Chris@16 20 template <class T>
Chris@16 21 struct unwrap_wrapper_
Chris@16 22 : mpl::eval_if<is_wrapper<T>,unwrap_wrapper_helper<T>,mpl::identity<T> >
Chris@16 23 {};
Chris@16 24
Chris@16 25 template <class T>
Chris@16 26 typename unwrap_wrapper_<T>::type*
Chris@16 27 unwrap_wrapper(T*)
Chris@16 28 {
Chris@16 29 return 0;
Chris@16 30 }
Chris@16 31
Chris@16 32 }}} // namespace boost::python::detail
Chris@16 33
Chris@16 34 #endif // UNWRAP_WRAPPER_DWA2004723_HPP