comparable.cpp 606 B

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