The information in this article applies to:
SYMPTOMSAny attempt to use the keyword 'template' within a class definition results in the following two errors:
RESOLUTIONThe resolution will vary according to the circumstances. For example, when declaring a template function to be a friend of a non-template class, find another way to manipulate the members of the class; for example, declare them to be public instead of private or provide public access member functions. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ version 5.0. MORE INFORMATION
Examples where you need to use the keyword template within a class
definition include:
Sample Code
Additional query words: kbVC400bug 10.0 10.00 10.1 10.10 10.20
Keywords : kbCompiler kbCPPonly kbLangCPP kbVC kbVC500fix |
Last Reviewed: September 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |