Title
scoped_allocator_adaptor uses forward to do move's job
Status
nad
Section
[allocator.adaptor.members]
Submitter
Billy Robert O'Neal III

Created on 2016-05-24.00:00:00 last changed 96 months ago

Messages

Date: 2016-06-05.16:20:49

Proposed resolution:

Withdrawn by the submitter, since the prerequisites were incorrect.

Date: 2016-06-05.16:20:49

scoped_allocator_adaptor is specified to use forward when what it is really doing is moving elements. It should use move.

Previous resolution [SUPERSEDED]:

This wording is relative to N4582.

  1. Edit [allocator.adaptor.members] p15 as indicated:

    template <class T1, class T2, class U, class V>
      void construct(pair<T1, T2>* p, pair<U, V>&& x);
    

    Effects: Equivalent to this->construct(p, piecewise_construct, forward_as_tuple(std::forwardmove<U>(x.first)), forward_as_tuple(std::forwardmove<V>(x.second))).

History
Date User Action Args
2016-06-05 16:20:49adminsetstatus: new -> nad
2016-05-29 12:50:48adminsetmessages: + msg8153
2016-05-24 00:00:00admincreate