I wonder why, in this code, the type of i
is an empty optional.
auto t = boost::hana::make_tuple(boost::hana::type_c<int>, boost::hana::type_c<double>);
auto i = boost::hana::index_if(t, boost::hana::is_a<boost::hana::type<double>>);
To me, it should be optional<hana::size_t<1>>
I know there is Boost hana get index of first matching but it is not exactly the same question