Last change
on this file since 29 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
665 bytes
|
Line | |
---|
1 | |
---|
2 | // (C) Copyright Dave Abrahams 2003. Use, modification and distribution is |
---|
3 | // subject to the Boost Software License, Version 1.0. (See accompanying |
---|
4 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
---|
5 | |
---|
6 | #include "test.hpp" |
---|
7 | #include "check_integral_constant.hpp" |
---|
8 | #ifdef TEST_STD |
---|
9 | # include <type_traits> |
---|
10 | #else |
---|
11 | # include <boost/type_traits/is_enum.hpp> |
---|
12 | #endif |
---|
13 | |
---|
14 | struct convertible_to_anything |
---|
15 | { |
---|
16 | template<typename T> operator T() { return 0; } |
---|
17 | }; |
---|
18 | |
---|
19 | |
---|
20 | TT_TEST_BEGIN(is_enum) |
---|
21 | |
---|
22 | BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<convertible_to_anything>::value, false); |
---|
23 | BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<int[] >::value, false); |
---|
24 | |
---|
25 | TT_TEST_END |
---|
26 | |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.