1// Copyright Louis Dionne 2013-2022
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
5#include "minimal.hpp"
6
7#include <boost/hana/tuple.hpp>
8
9#include <laws/constant.hpp>
10namespace hana = boost::hana;
11
12
13int main() {
14 constexpr auto ints = hana::make_tuple(
15 minimal_constant<int, -3>{},
16 minimal_constant<int, 0>{},
17 minimal_constant<int, 1>{},
18 minimal_constant<int, 2>{},
19 minimal_constant<int, 3>{}
20 );
21
22 constexpr auto convertible_types = hana::tuple_t<int, long, long long>;
23
24 hana::test::TestConstant<minimal_constant_tag<int>>{ints, convertible_types};
25}
26

source code of boost/libs/hana/test/concept/constant/laws.cpp