]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ext/boost/mpl/integral_c/interop.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/assert.hpp>
8 #include <boost/hana/equal.hpp>
9 #include <boost/hana/integral_constant.hpp>
10 #include <boost/hana/not_equal.hpp>
12 #include <boost/mpl/integral_c.hpp>
13 namespace hana
= boost::hana
;
14 namespace mpl
= boost::mpl
;
18 // Interoperation with hana::integral_constant
19 BOOST_HANA_CONSTANT_CHECK(mpl::integral_c
<int, 1>{} == hana::int_c
<1>);
20 BOOST_HANA_CONSTANT_CHECK(mpl::integral_c
<int, 1>{} == hana::long_c
<1>);
22 BOOST_HANA_CONSTANT_CHECK(mpl::integral_c
<int, 2>{} != hana::int_c
<3>);