orderable.cpp 703 B

12345678910111213141516171819202122232425
  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/ext/std/integral_constant.hpp>
  5. #include <boost/hana/tuple.hpp>
  6. #include <laws/orderable.hpp>
  7. #include <type_traits>
  8. namespace hana = boost::hana;
  9. int main() {
  10. auto ints = hana::make_tuple(
  11. std::integral_constant<int, -10>{},
  12. std::integral_constant<int, -2>{},
  13. std::integral_constant<int, 0>{},
  14. std::integral_constant<int, 1>{},
  15. std::integral_constant<int, 3>{}
  16. );
  17. hana::test::TestOrderable<hana::ext::std::integral_constant_tag<int>>{ints};
  18. }