Compiler Error C2821
first formal parameter to 'operator new' must be 'unsigned int'
The first formal parameter of the operator new must be an unsigned int
.
Example
The following sample generates C2821:
// C2821.cpp
// compile with: /c
void * operator new( /* unsigned int,*/ void * ); // C2821
void * operator new( unsigned int, void * );
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