fixing stuff
[dyninst.git] / dynutil / h / dyn_detail / boost / type_traits / is_integral.hpp
1
2 //  (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000.
3 //  Use, modification and distribution are subject to the Boost Software License,
4 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 //  http://www.boost.org/LICENSE_1_0.txt).
6 //
7 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
8
9 #ifndef DYN_DETAIL_BOOST_TT_IS_INTEGRAL_HPP_INCLUDED
10 #define DYN_DETAIL_BOOST_TT_IS_INTEGRAL_HPP_INCLUDED
11
12 #include <dyn_detail/boost/config.hpp>
13
14 // should be the last #include
15 #include <dyn_detail/boost/type_traits/detail/bool_trait_def.hpp>
16
17 namespace dyn_detail {
18 namespace boost {
19
20 //* is a type T an [cv-qualified-] integral type described in the standard (3.9.1p3)
21 // as an extention we include long long, as this is likely to be added to the
22 // standard at a later date
23 #if defined( __CODEGEARC__ )
24 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_integral,T,__is_integral(T))
25 #else
26 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_integral,T,false)
27
28 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned char,true)
29 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned short,true)
30 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned int,true)
31 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned long,true)
32
33 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,signed char,true)
34 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,signed short,true)
35 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,signed int,true)
36 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,signed long,true)
37
38 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,bool,true)
39 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,char,true)
40
41 #ifdef JAW_FIXME_KLUDGE_TO_GET_WINDOWS_BUILDING_NOT_DEFINED 
42 //#ifndef DYN_DETAIL_BOOST_NO_INTRINSIC_WCHAR_T
43 // If the following line fails to compile and you're using the Intel
44 // compiler, see http://lists.boost.org/MailArchives/boost-users/msg06567.php,
45 // and define DYN_DETAIL_BOOST_NO_INTRINSIC_WCHAR_T on the command line.
46 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,wchar_t,true)
47 #endif
48
49 // Same set of integral types as in boost/type_traits/integral_promotion.hpp.
50 // Please, keep in sync. -- Alexander Nasonov
51 #if (defined(DYN_DETAIL_BOOST_MSVC) && (DYN_DETAIL_BOOST_MSVC < 1300)) \
52     || (defined(DYN_DETAIL_BOOST_INTEL_CXX_VERSION) && defined(_MSC_VER) && (DYN_DETAIL_BOOST_INTEL_CXX_VERSION <= 600)) \
53     || (defined(__BORLANDC__) && (__BORLANDC__ == 0x600) && (_MSC_VER < 1300))
54 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned __int8,true)
55 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,__int8,true)
56 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned __int16,true)
57 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,__int16,true)
58 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned __int32,true)
59 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,__int32,true)
60 #ifdef __BORLANDC__
61 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned __int64,true)
62 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,__int64,true)
63 #endif
64 #endif
65
66 # if defined(DYN_DETAIL_BOOST_HAS_LONG_LONG)
67 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral, ::dyn_detail::boost::ulong_long_type,true)
68 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral, ::dyn_detail::boost::long_long_type,true)
69 #elif defined(DYN_DETAIL_BOOST_HAS_MS_INT64)
70 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,unsigned __int64,true)
71 DYN_DETAIL_BOOST_TT_AUX_BOOL_TRAIT_CV_SPEC1(is_integral,__int64,true)
72 #endif
73
74 #endif  // non-CodeGear implementation
75
76 } // namespace boost
77 } // namespace dyn_detail
78
79 #include <dyn_detail/boost/type_traits/detail/bool_trait_undef.hpp>
80
81 #endif // DYN_DETAIL_BOOST_TT_IS_INTEGRAL_HPP_INCLUDED