These are chat archives for boostorg/hana
map_compositionor something like that.
make_mapwould return a
comparable_mapreally is just a tuple of pairs, and you search it
map_composition, but I would definitely suggest tackling the problem of the map before trying to generalize.
map_composition, go ahead, but I would think that using an ad-hoc solution would be simpler for a start.
x == yto imply that
hash(x) == hash(y)?
hash(size_c<5>) == hash(int_c<5>)
IntegralConstantsto a common hash type.
size_c<5> != int_c<5>, cause they can’t be compared because of signedness.
size_c<5> == int_c<5>, then are we on the same page?
llong_c<…>, and all unsigned to
IntregralConstant<5> == IntregralConstant<5>?
uint_c<…>, and then we’d simply get more collisons but it would still work (I think).
hana::whenand the associated documentation.