This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD status.

2. Auto_ptr conversions effects incorrect

Section: 99 [auto.ptr.conv] Status: NAD Submitter: Nathan Myers Opened: 1997-12-04 Last modified: 2016-08-09

Priority: Not Prioritized

View all other issues in [auto.ptr.conv].

View all issues with NAD status.

Discussion:

Paragraph 1 in "Effects", says "Calls p->release()" where it clearly must be "Calls p.release()". (As it is, it seems to require using auto_ptr<>::operator-> to refer to X::release, assuming that exists.)

Proposed resolution:

Change 21.3.5.4 [meta.unary.prop] paragraph 1 Effects from "Calls p->release()" to "Calls p.release()".

Rationale:

Not a defect: the proposed change is already found in the standard. [Originally classified as a defect, later reclassified.]