E2406 Dependent type qualifier 'qualifier' is not a class or struct type (C++)

From RAD Studio
Jump to: navigation, search

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

If a dependent name reference within a template declaration results in a non-struct member qualification at instantiation time, the above error will result. For example:

template<class T>
class foo
{
typename T::A x;     // we expect that "A" is a member type
};
foo<int> y;// error: "int" cannot be qualified; not a class