2 // (C) Copyright John Maddock 2000.
3 // Use, modification and distribution are subject to the
4 // Boost Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 # include <type_traits>
10 # include <boost/type_traits.hpp>
13 #include "check_integral_constant.hpp"
15 TT_TEST_BEGIN(tricky_incomplete_type_test
)
17 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_class
<incomplete_type
>::value
, true);
18 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_compound
<incomplete_type
>::value
, true);
19 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum
<incomplete_type
>::value
, false);
20 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_scalar
<incomplete_type
>::value
, false);
21 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_array
<int[]>::value
, true);
22 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_array
<int[][3]>::value
, true);
23 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_array
<const int[]>::value
, true);
24 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_array
<const int[][3]>::value
, true);
25 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_array
<volatile int[]>::value
, true);
26 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_array
<volatile int[][3]>::value
, true);
27 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_array
<const volatile int[]>::value
, true);
28 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_array
<const volatile int[][3]>::value
, true);
29 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_function_pointer
<incomplete_type
>::value
, false);
30 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_function
<incomplete_type
>::value
, false);
31 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_pointer
<incomplete_type
>::value
, false);
32 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_pointer
<incomplete_type
>::value
, false);
33 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_member_object_pointer
<incomplete_type
>::value
, false);