]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ext/boost/mpl/integral_c/comparable.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / hana / test / ext / boost / mpl / integral_c / comparable.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)
4
5 #include <boost/hana/ext/boost/mpl/integral_c.hpp>
6
7 #include <boost/hana/tuple.hpp>
8
9 #include <laws/comparable.hpp>
10 #include <laws/hashable.hpp>
11
12 #include <boost/mpl/int.hpp>
13 #include <boost/mpl/integral_c.hpp>
14 namespace hana = boost::hana;
15 namespace mpl = boost::mpl;
16
17
18 int main() {
19 auto ints = hana::make_tuple(
20 mpl::int_<-10>{}, mpl::int_<-2>{}, mpl::integral_c<int, 0>{},
21 mpl::integral_c<int, 1>{}, mpl::integral_c<int, 3>{}
22 );
23
24 hana::test::TestComparable<hana::ext::boost::mpl::integral_c_tag<int>>{ints};
25 hana::test::TestHashable<hana::ext::boost::mpl::integral_c_tag<void>>{ints};
26 }