Title
[fund.ts] Incorrect is_assignable constraint in optional::op=(U&&)
Status
resolved
Section
[optional.object.assign]
Submitter
Howard Hinnant

Created on 2013-08-25.00:00:00 last changed 127 months ago

Messages

Date: 2014-06-17.08:47:43

Proposed resolution:

This wording is relative to N3691.

  1. Edit [optional.object.assign] p15 as indicated:

    template <class U> optional<T>& operator=(U&& v);
    

    -15- Requires: is_constructible<T, U>::value is true and is_assignable<U, TT&, U>::value is true.

Date: 2014-06-16.00:00:00

[ 2014-06-16 Rapperswill ]

Confirmed that this issue is resolved in the current Library Fundamentals working paper.

Date: 2014-06-07.00:00:00

[ 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.

Date: 2014-06-06.00:00:00

[ 2014-06-06 pre-Rapperswill ]

This issue has been reopened as fundamentals-ts.

Date: 2014-06-06.21:18:30

[ 2013-09 Chicago: ]

Move to Deferred. This feature will ship after C++14 and should be revisited then.

Date: 2014-06-06.21:18:30

Addresses: fund.ts

Minor wording nit in [optional.object.assign]/p15:

template <class U> optional<T>& operator=(U&& v);

-15- Requires: is_constructible<T, U>::value is true and is_assignable<U, T>::value is true.

Should be:

template <class U> optional<T>& operator=(U&& v);

-15- Requires: is_constructible<T, U>::value is true and is_assignable<T&, U>::value is true.

History
Date User Action Args
2014-06-17 08:47:43adminsetmessages: + msg7057
2014-06-17 08:47:43adminsetstatus: open -> resolved
2014-06-07 17:23:44adminsetmessages: + msg7005
2014-06-06 21:18:30adminsetmessages: + msg6994
2014-06-06 21:18:30adminsetstatus: deferred -> open
2013-09-26 11:12:18adminsetmessages: + msg6631
2013-09-26 11:12:18adminsetstatus: new -> deferred
2013-08-25 20:14:07adminsetmessages: + msg6570
2013-08-25 00:00:00admincreate