Enlarge hana zip two sequences per card

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 would like to match these two sequences of equal sizes with each other. However, I cannot figure out how to do this using functions hana::map:

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 do, I cannot create a mapping. I understand that a card requires that its elements be in the concept of a product, but I cannot understand (or even understand) this behavior in relation to buttoned structures.

Is there anything that I can do, or something that I am doing wrong?

Launch gcc version 6.0.0 20160320and hana version 0.7.0last choice today

+4
source share
1 answer

.

. type_tuple_c sizeof...(T), idx_tuple_c 2 - hana::size_c<0> hana::size_c<sizeof...(T)>.

, , , std::make_index_sequence<sizeof...(T)>{}. Boost.Hana.

+5

All Articles