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/assert.hpp> 8 #include <boost/hana/equal.hpp> 9 #include <boost/hana/integral_constant.hpp> 10 #include <boost/hana/not_equal.hpp> 11 12 #include <boost/mpl/integral_c.hpp> 13 namespace hana = boost::hana; 14 namespace mpl = boost::mpl; 15 16 main()17int main() { 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>); 21 22 BOOST_HANA_CONSTANT_CHECK(mpl::integral_c<int, 2>{} != hana::int_c<3>); 23 } 24