Chapter Contents |
Previous |
Next |
662 |
Explanation |
Explanation |
The template definition for a specialization used a template formal dependent name in a context where a scope, type, or class template name was expected. However the corresponding name in the specialization was not found or did not have the correct type. For example:
template <class T> class C { public: int Z; }; template <class T> void f( typename C<U>::Z* p ); void testit() { f<int>( 0 ); // Error, C<int>::Z is not a type }
This error may also be detected in the template definition.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.