BUG: C2511 Error on Member Function with Unknown ParameterLast reviewed: January 9, 1996Article ID: Q122267 |
The information in this article applies to:
SYMPTOMSClass functions defined using an unknown data type as a parameter will cause the C/C++ compiler to generate the following incorrect error:
error C2511: 'Reg' : overloaded member function not found in 'Test'Reg is the function being defined with the unknown data type, and Test is the name of the class.
RESOLUTIONThere are two possible workarounds to this problem. Using the Sample Code below, you would:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Visual C++, 32-bit Edition, version 4.0.
MORE INFORMATION
Sample Code
/* Compile options needed: none */class Test { int Reg(const int *a, struct T *t);};
int Test::Reg(const int *a, struct T *t){ return 0;}
|
Additional reference words: 7.00 8.00 8.00c 9.00 1.00 1.50 1.51 2.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |