The information in this article applies to:
SYMPTOMSWhen a templated class is not instantiated, but its member operators are referenced, the following error is generated: NOTE: The line number referenced by the error message refers to the point where the operator is referenced (called), not the operator's definition. RESOLUTION
The template class must be instantiated for the particular data type being
referenced (< class T> below). This instantiation can be accomplished in
one of two ways:
-or- STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was fixed in Microsoft Visual C++, 32-bit Edition, version 4.0. MORE INFORMATION
In the sample code below, the "*" operator has been chosen to reproduce the
problem, but the problem occurs with both binary and unary (prefix or
postfix) operators. In all cases, the workarounds are the same. The return
type of the operator function has no bearing on the problem.
Sample Code
Additional query words: 2.00 2.10 2.20 9.00 9.10
Keywords : kbCompiler kbCPPonly kbVC |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |