static constexpr auto type_tuple_c = hana::tuple_t<T...>;
static constexpr auto idx_tuple_c = hana::tuple_c<std::size_t, 0, sizeof...(T)>;
I'd like to map these two sequences of equal sizes with each other. However, I can't seem to understand how to get that with the hana::map
features:
static constexpr auto type_idx_map_c = hana::unpack(
hana::zip_with(hana::make_pair, type_tuple_c, idx_tuple_c)
, hana::make_map
);
No matter what transformations I make, I can't seem to create the mapping. I understand that a map requires its elements to be of the Product concept, but I can't seem to get (or even understand) that behavior in regards to zipped structures.
Is there anything I can do, or anything I'm doing incorrectly?
Running gcc version 6.0.0 20160320
and hana version 0.7.0
last fetched today
hana::to<hana::tuple_tag>(hana::range_c<size_t, 0, sizeof...(T)>)
for those interested. – Illegitimate