These are chat archives for boostorg/hana
make_impltake two template parameters, but I see them specialized all over the place with just one. Is there something I'm missing?
tuple_tag; you should create your own
tuple_of_pairs_tagor something. Regarding the second argument, see boostorg/hana#173. It’s just not documented yet.
hana::map, I can provide some directions. It would be better to do that than to work on your own
std::vector<std::pair<T, U>>instead of a
std::unordered_map<T, U>? It’s pretty much the same thing. What’s your use case?
Paththat was originally a tuple of primary keys and I could also look them up by a type that associated to each key
std::vector), you should not derive from them. I can’t tell you out of memory whether you’ll automatically get everything for free if you derive from
hana::tuple, but I can definitely tell you that it might break in a future version of the library. In other words, don’t do it because it’s not part of the contract given by
findByFirstor something like that. Actually, you can use
hana::find(tuple, hana::on(hana::first, your_predicate)).
path_tag, and to implement
make<…>(out of memory). That should define
Searchable, and then you get all the rest basically for free.
Searchable, and bubble down from there (
Sequenceshould ask for
any_of_impl, but I don't see a specialization for