]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/integral_constant/constant.cpp
5ef1248cafe4885dbeaa12b849fa18303ef93fda
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/integral_constant.hpp>
6 #include <boost/hana/tuple.hpp>
7 #include <boost/hana/value.hpp>
9 #include <laws/constant.hpp>
10 namespace hana
= boost::hana
;
15 static_assert(hana::value(hana::integral_c
<int, 0>) == 0, "");
16 static_assert(hana::value(hana::integral_c
<int, 1>) == 1, "");
20 hana::test::TestConstant
<hana::integral_constant_tag
<int>>{
29 hana::tuple_t
<int, long, long long>
32 hana::test::TestConstant
<hana::integral_constant_tag
<bool>>{
34 hana::true_c
, hana::false_c