Chapter Contents

Previous

Next
760

760



WARNING: Non-placement operator delete is hidden in <class-name>.
ERROR: Non-placement operator delete is hidden in <class-name>.


Explanation


Explanation

The deallocation function selected by a delete expression or a virtual destructor definition was a placement delete. A placement delete may not be used in such contexts. See section 12.5, paragraph 4 in the C++ standard. Note that template deallocation functions are always considered to be placement declarations and a member placement delete will hide the global default non-placement delete declaration.

This message is issued when a placement delete class member has been declared, no corresponding non-placement delete member has been declared, and a delete expression using the class is found or a virtual destructor for the class is defined. This message is a warning for virtual destructor definitions but may become an error in the future. Attempting to delete via a virtual destructor which generates the warning could result in no deallocation function being called. The message can be corrected by declaring a non-placement member operator delete.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.