Created on 2013-08-16.00:00:00 last changed 128 months ago
Proposed resolution:
This wording is relative to N3691.
Change [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 copyconstructorassignment.
[ 2014-06-16 Rapperswill ]
Confirmed that this issue is resolved in the current Library Fundamentals working paper.
[ 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.
[ 2014-06-06 pre-Rapperswill ]
This issue has been reopened as fundamentals-ts.
[ 2013-09 Chicago: ]
Move to Deferred. This feature will ship after C++14 and should be revisited then.
Addresses: fund.ts
The Exception safety paragraph of [optional.object.assign] calls out T's copy constructor when it should refer to T's copy assignment operator.
History | |||
---|---|---|---|
Date | User | Action | Args |
2014-06-17 08:47:43 | admin | set | messages: + msg7059 |
2014-06-17 08:47:43 | admin | set | status: open -> resolved |
2014-06-07 17:23:44 | admin | set | messages: + msg7007 |
2014-06-06 21:18:30 | admin | set | messages: + msg6996 |
2014-06-06 21:18:30 | admin | set | status: deferred -> open |
2013-09-26 11:12:18 | admin | set | messages: + msg6633 |
2013-09-26 11:12:18 | admin | set | status: new -> deferred |
2013-09-01 21:12:19 | admin | set | messages: + msg6581 |
2013-08-16 00:00:00 | admin | create |