fixing stuff
[dyninst.git] / dynutil / h / dyn_detail / boost / type_traits / is_union.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_IS_UNION_HPP_INCLUDED
12 #define DYN_DETAIL_BOOST_TT_IS_UNION_HPP_INCLUDED
13
14 #include <dyn_detail/boost/type_traits/remove_cv.hpp>
15 #include <dyn_detail/boost/type_traits/config.hpp>
16 #include <dyn_detail/boost/type_traits/intrinsics.hpp>
17
18 // should be the last #include
19 #include <dyn_detail/boost/type_traits/detail/bool_trait_def.hpp>
20
21 namespace dyn_detail {
22 namespace boost {
23
24 namespace detail {
25 #ifndef __GNUC__
26 template <typename T> struct is_union_impl
27 {
28    typedef typename remove_cv<T>::type cvt;
29    DYN_DETAIL_BOOST_STATIC_CONSTANT(bool, value = DYN_DETAIL_BOOST_IS_UNION(cvt));
30 };
31 #else
32 //
33 // using remove_cv here generates a whole load of needless
34 // warnings with gcc, since it doesn't do any good with gcc
35 // in any case (at least at present), just remove it:
36 //
37 template <typename T> struct is_union_impl
38 {
39    DYN_DETAIL_BOOST_STATIC_CONSTANT(bool, value = DYN_DETAIL_BOOST_IS_UNION(T));
40 };
41 #endif
42 } // namespace detail
43
44 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_union,T,::dyn_detail::boost::detail::is_union_impl<T>::value)
45
46 } // namespace boost
47 } // namespace dyn_detail
48
49 #include <dyn_detail/boost/type_traits/detail/bool_trait_undef.hpp>
50
51 #endif // DYN_DETAIL_BOOST_TT_IS_UNION_HPP_INCLUDED