FIX: C2065: Undeclared Identifier Creating a STL Function Object (177431)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q177431 SYMPTOMS
Creating the STL function object "binder2nd" causes the compiler to
generate the following error C2065:
'identifier' : undeclared identifier
It is the std::multiples<int>(): line that causes the namespace to be
lost.
RESOLUTION
Use one of the following methods to work around this problem:
- Use the "using namespace" directive instead of qualifying the function objects.
- Pre-declare an instance of std::multiplies<int> to solve the problem.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft product
listed at the beginning of this article. This problem was corrected in Visual C++ version 6.0 for Windows.
Modification Type: | Major | Last Reviewed: | 10/24/2003 |
---|
Keywords: | kbbug kbfix kbVC600fix KB177431 |
---|
|