Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error C2650
Collapse the table of content
Expand the table of content

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.

The following sample 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 );
© 2015 Microsoft