RAD Studio
ContentsIndex
PreviousUpNext
E2406: Dependent type qualifier 'qualifier' is not a class or struct type (C++)

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
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!