Created on 2012-11-14.00:00:00 last changed 63 months ago
Additional note, April, 2015:
EWG has decided not to make a change in this area. See EWG issue 112.
Rationale (November, 2013):
CWG felt that the suggested change should be considered by EWG before the issue is resolved.
Notes from the April, 2013 meeting:
CWG favored replacing the existing syntax with something more flexible, for example, p->~auto(). This new syntax would also apply to pseudo destructors.
Use of a decltype-specifier to name a destructor in an explicit destructor call is explicitly permitted in 15.4 [class.dtor] paragraph 13. However, the most straightforward attempt to do so, e.g.,
does not work, because *p is an lvalue and thus decltype(*p) is a reference type, not a class type. Even simply eliminating the reference is not sufficient, because p could be a pointer to a cv-qualified class type.
Either the provision for decltype-specifiers in explicit destructor calls should be removed or the specification should be expanded to allow reference and cv-qualified types to be considered as “denot[ing] the destructor's class type.”
|2015-04-13 00:00:00||admin||set||messages: + msg5434|
|2015-04-13 00:00:00||admin||set||status: extension -> nad|
|2014-01-20 00:00:00||admin||set||messages: + msg4795|
|2014-01-20 00:00:00||admin||set||status: drafting -> extension|
|2013-05-03 00:00:00||admin||set||messages: + msg4341|
|2013-05-03 00:00:00||admin||set||status: open -> drafting|