This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-11-11


1081. Defaulted destructor and unusable operator delete

Section: 11.4.7  [class.dtor]     Status: C++11     Submitter: Jason Merrill     Date: 2010-06-22

[Voted into the WP at the March, 2011 meeting.]

A defaulted destructor should be implicitly defined as deleted if operator delete is deleted or inaccessible.

Proposed resolution (November, 2010):

Change 11.4.7 [class.dtor] paragraph 3 as follows:

...A defaulted destructor for a class X is defined as deleted if:

A destructor is trivial if...