Improve vacpp support.
[boost.git] / boost / libs / type_traits / test / is_enum_test.cpp
blob019eeaddf58d20c17c7df30cffd66897225ec9dd
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)
7 #include "test.hpp"
8 #include "check_integral_constant.hpp"
9 #ifdef TEST_STD
10 # include <type_traits>
11 #else
12 # include <boost/type_traits/is_enum.hpp>
13 #endif
15 TT_TEST_BEGIN(is_enum)
17 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<int>::value, false);
18 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<enum_UDT>::value, true);
19 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<int_convertible>::value, false);
20 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<int&>::value, false);
21 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<boost::noncopyable>::value, false);
22 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<void>::value, false);
23 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<test_abc1>::value, false);
25 TT_TEST_END