E2437 'typename' should be followed by a qualified, dependent type name (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

Whenever the "typename" keyword is used in a template declaration or definition, it should always name a dependent type. For example:

struct bar { };
template<class T>
class foo {
typename T::A *x;// OK: names a qualified type
typename T y;// error: not a qualified type
typename bar z;// error: not a dependent type
};

See Also