]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/range/make.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/assert.hpp>
6 #include <boost/hana/core/make.hpp>
7 #include <boost/hana/equal.hpp>
8 #include <boost/hana/integral_constant.hpp>
9 #include <boost/hana/range.hpp>
11 #include <laws/base.hpp>
12 namespace hana
= boost::hana
;
16 // make sure make<range_tag> works with arbitrary Constants
17 BOOST_HANA_CONSTANT_CHECK(hana::equal(
18 hana::make
<hana::range_tag
>(hana::test::_constant
<1>{}, hana::test::_constant
<4>{}),
19 hana::make_range(hana::integral_c
<int, 1>, hana::integral_c
<int, 4>)