3 ms·
> If it is not SomeType, then ::name is a typedef for int and the parse tree is declaring a pointer-to-int named x. Doesn't this require "typename" at the begi
by petters 7y ago
> If it is not SomeType, then ::name is a typedef for int and the parse tree is declaring a pointer-to-int named x.
Doesn't this require "typename" at the beginning of the line?
- MauranKilom 7y agoNo, not in this instance. typename is needed to mark dependent names as types, but you can only have dependent (i.e. on a template parameter) names within templates.