]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ext/std/integral_constant/constant.cpp
1 // Copyright Louis Dionne 2013-2017
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
5 #include <boost/hana/ext/std/integral_constant.hpp>
7 #include <boost/hana/tuple.hpp>
8 #include <boost/hana/value.hpp>
10 #include <laws/constant.hpp>
12 #include <type_traits>
13 namespace hana
= boost::hana
;
18 static_assert(hana::value(std::integral_constant
<int, 0>{}) == 0, "");
19 static_assert(hana::value(std::integral_constant
<int, 1>{}) == 1, "");
20 static_assert(hana::value(std::integral_constant
<int, 3>{}) == 3, "");
23 hana::test::TestConstant
<hana::ext::std::integral_constant_tag
<int>>{
25 std::integral_constant
<int, -10>{},
26 std::integral_constant
<int, -2>{},
27 std::integral_constant
<int, 0>{},
28 std::integral_constant
<int, 1>{},
29 std::integral_constant
<int, 3>{}
31 hana::tuple_t
<int, long, long long>