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!
|