Chris@16: // Copyright David Abrahams 2002. Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: #ifndef POINTEE_DWA2002323_HPP Chris@16: # define POINTEE_DWA2002323_HPP Chris@16: Chris@16: # include Chris@16: Chris@16: # include Chris@16: # include Chris@16: Chris@16: namespace boost { namespace python { Chris@16: Chris@16: namespace detail Chris@16: { Chris@16: template Chris@16: struct pointee_impl Chris@16: { Chris@16: template struct apply : remove_pointer {}; Chris@16: }; Chris@16: Chris@16: template <> Chris@16: struct pointee_impl Chris@16: { Chris@16: template struct apply Chris@16: { Chris@16: typedef typename T::element_type type; Chris@16: }; Chris@16: }; Chris@16: } Chris@16: Chris@16: template Chris@16: struct pointee Chris@16: : detail::pointee_impl< Chris@16: ::boost::is_pointer::value Chris@16: >::template apply Chris@16: { Chris@16: }; Chris@16: Chris@16: }} // namespace boost::python::detail Chris@16: Chris@16: #endif // POINTEE_DWA2002323_HPP