Boost logo

Boost :

From: Christian Mazakas (christian.mazakas_at_[hidden])
Date: 2024-02-29 22:29:38


I'm not entirely sold on the value of Hana's `operator[]` for tuple
accesses.

Especially because in later C++, we have placeholders so we can always just
do:

  auto const& [first,_,_] = my_tuple;

https://godbolt.org/z/vvnKxjGos

I largely agree with Alan, Hana's a heavyweight dependency for what I think
is dubious
benefit. Maybe others feel differently here but I'd prefer to just always
work with the
standard tuple and structured bindings than Hana's `operator[]`.

- Christian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk