E2044 operator delete must return void (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index


This C++ overloaded operator delete was declared in some other way.

Declare the operator delete with one of the following:

  • A single void* parameter
  • A second parameter of type size_t

If you use the second version, it is used in preference to the first version.

The global operator delete can only be declared using the single-parameter form.