Chapter Contents |
Previous |
Next |
749 |
Explanation |
Explanation |
The arguments for class template partial specialization may not match the arguments for the template. The original class template implicitly has arguments corresponding to the order of its parameter list. For example:
template <typename T, typename U> class C; // implicitly C<T, U> template <typename T, typename U> class C<T*, U>; // partial specialization, OK template <typename T, typename U> class C<T, U>; // error, same as primary template
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.