The information in this article applies to:
SYMPTOMSYou may get the following error message if you try to use class template partial specializations: Please refer to the sample in the More Information section for details. CAUSEThe compiler does not support class template partial specializations as specified in the C++ Standard (14.5.4.1) quoted here: 1- A primary class template declaration is one in which the class template name is an identifier. A template declaration in which the class template name is a template-id, is a partial specialization of the class template named in the template-id. A partial specialization of a class template provides an alternative definition of the template that is used instead of the primary definition when the arguments in a specialization match those given in the partial specialization (temp.class.spec.match). The primary template shall be declared before any specializations of that template. If a template is partially specialized then that partial specialization shall be declared before the first use of that partial specialization that would cause an implicit instantiation to take place, in every translation unit in which such a use occurs; no diagnostic is required.Please refer to the C++ Standard section 14.5.4 for more information on this. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce BehaviorThe following code sample demonstrates the error.
Additional query words:
Keywords : kbtemplate kbCompiler kbCPPonly kbVC500 kbVC500bug kbVC600 kbVC600bug |
Last Reviewed: October 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |