Namespaces
Variants
Views
Actions

Talk:cpp/language/dependent name

From cppreference.com

[edit] 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.

114.66.17.1 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)