2 // (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
3 // Permission to copy, use, modify, sell and distribute this software is
4 // granted provided this copyright notice appears in all copies. This software
5 // is provided "as is" without express or implied warranty, and with no claim
6 // as to its suitability for any purpose.
8 // See http://www.boost.org for most recent version including documentation.
10 #ifndef BOOST_TT_ADD_POINTER_HPP_INCLUDED
11 #define BOOST_TT_ADD_POINTER_HPP_INCLUDED
13 #include "boost/type_traits/remove_reference.hpp"
15 // should be the last #include
16 #include "boost/type_traits/detail/type_trait_def.hpp"
23 struct add_pointer_impl
25 typedef typename remove_reference<T>::type no_ref_type;
26 typedef no_ref_type* type;
31 BOOST_TT_AUX_TYPE_TRAIT_DEF1(add_pointer,T,typename detail::add_pointer_impl<T>::type)
35 #include "boost/type_traits/detail/type_trait_undef.hpp"
37 #endif // BOOST_TT_ADD_POINTER_HPP_INCLUDED