File indexing completed on 2025-01-18 09:50:38
0001
0002
0003
0004 #ifndef IS_WRAPPER_DWA2004723_HPP
0005 # define IS_WRAPPER_DWA2004723_HPP
0006
0007 # include <boost/python/detail/prefix.hpp>
0008 # include <boost/mpl/bool.hpp>
0009
0010 namespace boost { namespace python {
0011
0012 template <class T> class wrapper;
0013
0014 namespace detail
0015 {
0016 typedef char (&is_not_wrapper)[2];
0017 is_not_wrapper is_wrapper_helper(...);
0018 template <class T>
0019 char is_wrapper_helper(wrapper<T> const volatile*);
0020
0021
0022 template <class T>
0023 struct is_wrapper
0024 : mpl::bool_<(sizeof(detail::is_wrapper_helper((T*)0)) == 1)>
0025 {};
0026
0027 }}}
0028
0029 #endif