make.cpp 716 B

123456789101112131415161718192021
  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. #include <boost/hana/assert.hpp>
  5. #include <boost/hana/core/make.hpp>
  6. #include <boost/hana/equal.hpp>
  7. #include <boost/hana/integral_constant.hpp>
  8. #include <boost/hana/range.hpp>
  9. #include <laws/base.hpp>
  10. namespace hana = boost::hana;
  11. int main() {
  12. // make sure make<range_tag> works with arbitrary Constants
  13. BOOST_HANA_CONSTANT_CHECK(hana::equal(
  14. hana::make<hana::range_tag>(hana::test::_constant<1>{}, hana::test::_constant<4>{}),
  15. hana::make_range(hana::integral_c<int, 1>, hana::integral_c<int, 4>)
  16. ));
  17. }