Where should the destruction of aggregate members take place?

2013-05-10 Thread Henning Pohl
a) In the so-called whole dtor which calls the dtors of all members including the dtor declared (if any). The attributes of the whole dtor are deduced. b) Everything takes place in the dtor declared (if any). If the dtor is pure/nothrow/safe, it is guaranteed that the object can be

Re: Where should the destruction of aggregate members take place?

2013-05-10 Thread Kenji Hara
2013/5/11 Henning Pohl henn...@still-hidden.de a) In the so-called whole dtor which calls the dtors of all members including the dtor declared (if any). The attributes of the whole dtor are deduced. b) Everything takes place in the dtor declared (if any). If the dtor is pure/nothrow/safe,