| 13 | |
| 14 | |
| 15 | int main() { |
| 16 | hana::test::_injection<0> f{}; |
| 17 | |
| 18 | BOOST_HANA_CONSTANT_CHECK(hana::equal( |
| 19 | hana::unpack(hana::make_basic_tuple(), f), |
| 20 | f() |
| 21 | )); |
| 22 | |
| 23 | BOOST_HANA_CONSTANT_CHECK(hana::equal( |
| 24 | hana::unpack(hana::make_basic_tuple(ct_eq<0>{}), f), |
| 25 | f(ct_eq<0>{}) |
| 26 | )); |
| 27 | |
| 28 | BOOST_HANA_CONSTANT_CHECK(hana::equal( |
| 29 | hana::unpack(hana::make_basic_tuple(ct_eq<0>{}, ct_eq<1>{}), f), |
| 30 | f(ct_eq<0>{}, ct_eq<1>{}) |
| 31 | )); |
| 32 | |
| 33 | BOOST_HANA_CONSTANT_CHECK(hana::equal( |
| 34 | hana::unpack(hana::make_basic_tuple(ct_eq<0>{}, ct_eq<1>{}, ct_eq<2>{}), f), |
| 35 | f(ct_eq<0>{}, ct_eq<1>{}, ct_eq<2>{}) |
| 36 | )); |
| 37 | } |