Section: 99 [fund.ts::optional.object.assign] Status: Resolved Submitter: Howard Hinnant Opened: 2013-08-16 Last modified: 2015-10-26
Priority: Not Prioritized
View all other issues in [fund.ts::optional.object.assign].
View all issues with Resolved status.
The Exception safety paragraph of 99 [fund.ts::optional.object.assign] calls out T's copy constructor when it should refer to T's copy assignment operator.
Move to Deferred. This feature will ship after C++14 and should be revisited then.
This issue has been reopened as fundamentals-ts.
[2014-06-07 Daniel comments]
This issue should be set to Resolved, because the wording fix is already applied in the last fundamentals working draft.
Confirmed that this issue is resolved in the current Library Fundamentals working paper.
This wording is relative to N3691.
Change 99 [fund.ts::optional.object.assign] as indicated:
optional<T>& operator=(const optional<T>& rhs);
[…]-8- Exception safety: If any exception is thrown, the values of init and rhs.init remain unchanged. If an exception is thrown during the call to T's copy constructor, no effect. If an exception is thrown during the call to T's copy assignment, the state of its contained value is as defined by the exception safety guarantee of T's copy