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).
8
// See http://www.boost.org/libs/type_traits for most recent version including documentation.
11
#ifndef BOOST_TT_IS_UNION_HPP_INCLUDED
12
#define BOOST_TT_IS_UNION_HPP_INCLUDED
14
#include <boost/type_traits/remove_cv.hpp>
15
#include <boost/type_traits/config.hpp>
16
#include <boost/type_traits/intrinsics.hpp>
18
// should be the last #include
19
#include <boost/type_traits/detail/bool_trait_def.hpp>
25
template <typename T> struct is_union_impl
27
typedef typename remove_cv<T>::type cvt;
28
BOOST_STATIC_CONSTANT(bool, value = BOOST_IS_UNION(cvt));
32
// using remove_cv here generates a whole load of needless
33
// warnings with gcc, since it doesn't do any good with gcc
34
// in any case (at least at present), just remove it:
36
template <typename T> struct is_union_impl
38
BOOST_STATIC_CONSTANT(bool, value = BOOST_IS_UNION(T));
43
BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_union,T,::boost::detail::is_union_impl<T>::value)
47
#include <boost/type_traits/detail/bool_trait_undef.hpp>
49
#endif // BOOST_TT_IS_UNION_HPP_INCLUDED