https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65230

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Ulrich Drepper from comment #3)
> Again, more uniform and I'd say it should be encouraged to use std::get
> instead of .first / .second because it's compatible with std::tuple.

Which makes sense given the even-closer alignment between them in C++23 due to
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2165r4.pdf

(In reply to Ulrich Drepper from comment #5)
> Or should the std::pair output even be
> 
> p1 = std::pair<int,int> = {[0] = 0, [1] = 0}
> 
> ??

Yes, I think that's better.

Reply via email to