Movatterモバイル変換


[0]ホーム

URL:


Issue 193 - WG21 CWG Issues
Title
Order of destruction of local automatics of destructor
Status
tc1
Section
11.4.7 [class.dtor]
Submitter
Gerhard Menzl

Created on2000-01-07.00:00:00 last changed277 months ago

Messages

msg315 (view)
Date: 2000-04-15.00:00:00

Proposed resolution (10/00):

In 11.4.7 [class.dtor] paragraph 6, change

A destructor for classX calls the destructors forX's direct members, ...
to
After executing the body of the destructor and destroying anyautomatic objects allocated within the body, a destructor for classX calls the destructors forX's direct members, ...

msg261 (view)
Date: 2003-04-25.00:00:00

The Standard is not clear whether automatic objects in a destructorare destroyed before or after the destruction of the class's base andmember subobjects. That is, given

    struct S { ~S(); };    struct T {        S x;        ~T() {            S y;        };    };

which will be destroyed first,x ory?

History
DateUserActionArgs
2003-04-25 00:00:00adminsetstatus: dr -> tc1
2000-11-18 00:00:00adminsetstatus: ready -> dr
2000-05-21 00:00:00adminsetmessages: +msg315
2000-05-21 00:00:00adminsetstatus: open -> ready
2000-01-07 00:00:00admincreate

[8]ページ先頭

©2009-2026 Movatter.jp