]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/type_traits/test/tricky_is_enum_test.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / type_traits / test / tricky_is_enum_test.cpp
CommitLineData
7c673cae
FG
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
7c673cae
FG
6#ifdef TEST_STD
7# include <type_traits>
8#else
9# include <boost/type_traits/is_enum.hpp>
10#endif
11fdf7f2
TL
11#include "test.hpp"
12#include "check_integral_constant.hpp"
7c673cae
FG
13
14struct convertible_to_anything
15{
16 template<typename T> operator T() { return 0; }
17};
18
19
20TT_TEST_BEGIN(is_enum)
21
22BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<convertible_to_anything>::value, false);
23BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum<int[] >::value, false);
24
25TT_TEST_END
26
27