Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'operator' : cannot be a virtual function
Remarks
A new or delete operator is declared virtual. These operators are static member functions and cannot be virtual.
Example
The following example generates C2650:
// C2650.cpp
// compile with: /c
class A {
virtual void* operator new( unsigned int ); // C2650
// try the following line instead
// void* operator new( unsigned int );
};