Compiler Error C2665
'function' : none of the number1 overloads can convert parameter number2 from type 'type'
A parameter of the overloaded function cannot be converted to the required type. Possible resolutions:
Supply a conversion operator.
Use explicit conversion.
Example
The following sample generates C2665.
// C2665.cpp
void func(short, char*){}
void func(char*, char*){}
int main() {
func(0, 1); // C2665
func((short)0, (char*)1); // OK
}
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för