| 23 | auto f = hana::overload(on_int, on_string); |
| 24 | |
| 25 | int main() { |
| 26 | // prints "matched int: 1" |
| 27 | BOOST_HANA_RUNTIME_CHECK(f(1) == 1); |
| 28 | |
| 29 | // prints "matched std::string: abcdef" |
| 30 | BOOST_HANA_RUNTIME_CHECK(f("abcdef") == std::string{"abcdef"}); |
| 31 | } |