Export (0) Print
Expand All
Expand Minimize

Compiler Error C2650

'operator' : cannot be a virtual function

A new or delete operator is declared virtual. These operators are static member functions and cannot be virtual.

Example

// C2650.cpp
class A
{
   virtual void* operator new( unsigned int ); // C2650
};
Show:
© 2014 Microsoft