About The typename disambiguator
C++ Templates: The Complete Guide mentions that the keyword typename is also required inside the template declaration if a template parameter uses a dependent type name, as in
template<typename T, typename T::id u //here > class ty;
I think this use is rare, and I don't know whether it is necessary to be mentioned here.
18.104.22.168 03:23, 7 March 2014 (PST)
- The standardese for this is "A name used in a template declaration or definition and that is dependent on a template-parameter is assumed not to name a type unless the applicable name lookup finds a type name or the name is qualified by the keyword typename", as the page currently says definition, it is indeed wrong, thank you for pointing out. --Cubbi (talk)