]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ext/boost/mpl/integral_c/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/boost/mpl/integral_c.hpp>
7 #include <boost/hana/tuple.hpp>
8 #include <boost/hana/value.hpp>
10 #include <laws/constant.hpp>
12 #include <boost/mpl/int.hpp>
13 #include <boost/mpl/integral_c.hpp>
14 namespace hana
= boost::hana
;
15 namespace mpl
= boost::mpl
;
20 static_assert(hana::value(mpl::integral_c
<int, 0>{}) == 0, "");
21 static_assert(hana::value(mpl::integral_c
<int, 1>{}) == 1, "");
22 static_assert(hana::value(mpl::integral_c
<int, 3>{}) == 3, "");
25 hana::test::TestConstant
<hana::ext::boost::mpl::integral_c_tag
<int>>{
27 mpl::int_
<-10>{}, mpl::int_
<-2>{}, mpl::integral_c
<int, 0>{},
28 mpl::integral_c
<int, 1>{}, mpl::integral_c
<int, 3>{}
30 hana::tuple_t
<int, long, long long>