fixing stuff
[dyninst.git] / dynutil / h / dyn_detail / boost / type_traits / remove_cv.hpp
1
2 //  (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes, Howard
3 //  Hinnant & John Maddock 2000.  
4 //  Use, modification and distribution are subject to the Boost Software License,
5 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 //  http://www.boost.org/LICENSE_1_0.txt).
7 //
8 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
9
10
11 #ifndef DYN_DETAIL_BOOST_TT_REMOVE_CV_HPP_INCLUDED
12 #define DYN_DETAIL_BOOST_TT_REMOVE_CV_HPP_INCLUDED
13
14 #include <dyn_detail/boost/type_traits/broken_compiler_spec.hpp>
15 #include <dyn_detail/boost/type_traits/detail/cv_traits_impl.hpp>
16 #include <dyn_detail/boost/config.hpp>
17 #include <dyn_detail/boost/detail/workaround.hpp>
18
19 #include <cstddef>
20
21 #if DYN_DETAIL_BOOST_WORKAROUND(DYN_DETAIL_BOOST_MSVC,<=1300)
22 #include <dyn_detail/boost/type_traits/msvc/remove_cv.hpp>
23 #endif
24
25 // should be the last #include
26 #include <dyn_detail/boost/type_traits/detail/type_trait_def.hpp>
27
28 namespace dyn_detail {
29 namespace boost {
30
31 #ifndef DYN_DETAIL_BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
32
33 //  convert a type T to a non-cv-qualified type - remove_cv<T>
34 DYN_DETAIL_BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_cv,T,typename ::dyn_detail::boost::detail::cv_traits_imp<T*>::unqualified_type)
35 DYN_DETAIL_BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_1(typename T,remove_cv,T&,T&)
36 #if !defined(DYN_DETAIL_BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS)
37 DYN_DETAIL_BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_cv,T const[N],T type[N])
38 DYN_DETAIL_BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_cv,T volatile[N],T type[N])
39 DYN_DETAIL_BOOST_TT_AUX_TYPE_TRAIT_PARTIAL_SPEC1_2(typename T,std::size_t N,remove_cv,T const volatile[N],T type[N])
40 #endif
41
42 #elif !DYN_DETAIL_BOOST_WORKAROUND(DYN_DETAIL_BOOST_MSVC,<=1300)
43
44 namespace detail {
45 template <typename T>
46 struct remove_cv_impl
47 {
48     typedef typename remove_volatile_impl< 
49           typename remove_const_impl<T>::type
50         >::type type;
51 };
52 }
53
54 DYN_DETAIL_BOOST_TT_AUX_TYPE_TRAIT_DEF1(remove_cv,T,typename ::dyn_detail::boost::detail::remove_cv_impl<T>::type)
55
56 #endif // DYN_DETAIL_BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
57
58 } // namespace boost
59 } // namespace dyn_detail 
60
61 #include <dyn_detail/boost/type_traits/detail/type_trait_undef.hpp>
62
63 #endif // DYN_DETAIL_BOOST_TT_REMOVE_CV_HPP_INCLUDED