Compiler Error C2264
'function' : error in function definition or declaration; function not called
The function cannot be called due to an incorrect definition or declaration.
The following sample generates C2264:
// C2264.cpp
struct C {
// Delete the following line to resolve.
operator int(int = 0){} // incorrect declaration
};
struct D {
operator int(){return 0;} // OK
};
int main() {
int i;
C c;
i = c; // C2264
D d;
i = d; // OK
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for