FIX: C2668 in Overloaded Function When enum Is Promoted to int (149965)
The information in this article applies to:
- Microsoft Visual C++ 1.0
- Microsoft Visual C++ 1.5
- Microsoft Visual C++ 1.52
- Microsoft Visual C++, 32-bit Learning Edition 4.0
- Microsoft Visual C++, 32-bit Learning Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 2.0
- Microsoft Visual C++, 32-bit Professional Edition 2.1
- Microsoft Visual C++, 32-bit Professional Edition 2.2
- Microsoft Visual C++, 32-bit Professional Edition 4.0
- Microsoft Visual C++, 32-bit Professional Edition 4.1
- Microsoft Visual C++, 32-bit Professional Edition 4.2
This article was previously published under Q149965 SYMPTOMS
When a function is overloaded to take an int parameter in one instance and
an unsigned int in another, the following error results if a call to the
function is made with an enumerated type:
C2668 error: 'func' : ambiguous call to overloaded function (new
behavior; please see help)
STATUS
Microsoft has confirmed this to be bug in the Microsoft products listed at
the beginning of this article. This bug was corrected in Visual C++ version
5.0.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbbug kbCompiler kbCPPonly kbfix kbVC500fix KB149965 |
---|
|