
6 Apr
2012
6 Apr
'12
8:59 a.m.
On 06/04/12 09:04, Andrzej Krzemienski wrote:
And this is the worst part: I forgot the "typename". Having to type this "typename" is really terrible and just scares off many people. If you do not mind it, it only means that you got used to it; but people should not be forced to get used to too many gotchas.
The language requires to specify whenever dependent names in template contexts are anything else than values (i.e. types or templates). There is no substitute for learning the basics of the language. This is not a gotcha, just normal usage of templates.