]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/test/negation_test.cpp
604b7fe2d49897fcb03f51b1ecc9373d868357d0
[ceph.git] / ceph / src / boost / libs / type_traits / test / negation_test.cpp
1 /*
2 Copyright 2020 Glen Joseph Fernandes
3 (glenjofe@gmail.com)
4
5 Distributed under the Boost Software License,
6 Version 1.0. (See accompanying file LICENSE_1_0.txt
7 or copy at http://www.boost.org/LICENSE_1_0.txt)
8 */
9 #ifdef TEST_STD
10 #include <type_traits>
11 #else
12 #include <boost/type_traits/negation.hpp>
13 #endif
14 #include "check_integral_constant.hpp"
15
16 template<int V>
17 struct Int {
18 static const int value = V;
19 };
20
21 TT_TEST_BEGIN(negation)
22
23 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::negation<Int<5> >::value, false);
24 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::negation<Int<0> >::value, true);
25
26 TT_TEST_END