]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/test/tricky_is_enum_test.cpp
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)
7 # include <type_traits>
9 # include <boost/type_traits/is_enum.hpp>
12 #include "check_integral_constant.hpp"
14 struct convertible_to_anything
16 template<typename T
> operator T() { return 0; }
20 TT_TEST_BEGIN(is_enum
)
22 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum
<convertible_to_anything
>::value
, false);
23 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_enum
<int[] >::value
, false);