Chapter Contents

Previous

Next
753

753



WARNING: Partial specialization is not deducible.


Explanation


Explanation

No specializations can be generated using the class template partial specialization because not all of the partial specialization template formals are used in a way in the argument list that allows them to be deduced. For example:

template <typename T, typename U>       
class C;

template <typename T, typename U>       
class C <T, int>          // does not use formal U
{ ...
};

Note that template formals also cannot be deduced when they are used inside expressions or as part of the scope of a qualified type name.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.