RAD Studio
ContentsIndex
PreviousUpNext
E2044: operator delete must return void (C++)

E2044 operator delete[] must return voidCompiler error 

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

Declare the operator delete with one of the following: 

1.A single void* parameter, or 

2.A second parameter of type size_t 

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

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

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!