comparable.cpp 613 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 "minimal.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. minimal_constant<int, -3>{},
  11. minimal_constant<int, 0>{},
  12. minimal_constant<int, 1>{},
  13. minimal_constant<int, 2>{},
  14. minimal_constant<int, 3>{}
  15. );
  16. hana::test::TestComparable<minimal_constant_tag<int>>{ints};
  17. }