Title
[fund.ts.v2] experimental::function::assign should be removed
Status
open
Section
[func.wrap.func]
Submitter
Tim Song

Created on 2015-12-20.00:00:00 last changed 82 months ago

Messages

Date: 2016-02-07.20:24:45

Proposed resolution:

This wording is relative to N4562.

  1. Edit [func.wrap.func], class template function synopsis, as indicated:

    namespace std {
      namespace experimental {
      inline namespace fundamentals_v2 {
        […]
        template<class R, class... ArgTypes>
        class function<R(ArgTypes...)> {
        public:
          […]
          void swap(function&);
          template<class F, class A> void assign(F&&, const A&);
          […]
        };
        […]
      } // namespace fundamentals_v2
      } // namespace experimental
      […]
    } // namespace std
    
Date: 2016-02-07.20:24:45

[ 2016-02, Issues Telecon ]

P0; move to Tentatively Ready.

Date: 2015-12-20.00:00:00

Addresses: fund.ts.v2

Following the lead of LWG 2385, the assign(F&&, const A&) member function template in std::experimental::function makes no sense (it causes undefined behavior unless the allocator passed compares equal to the one already used by *this) and should be removed.

History
Date User Action Args
2017-07-30 20:10:41adminsetstatus: wp -> open
2016-03-07 04:18:55adminsetstatus: ready -> wp
2016-02-07 20:24:45adminsetmessages: + msg7965
2016-02-07 20:24:45adminsetstatus: new -> ready
2015-12-20 10:29:52adminsetmessages: + msg7668
2015-12-20 00:00:00admincreate