Created on 2015-08-04.00:00:00 last changed 89 months ago
Proposed resolution:
This wording is relative to N4529.
Edit [func.wrap.func.mod] as indicated:
void swap(function& other);-2- Requires: *this->get_memory_resource() == *other
-3- Effects: Interchanges the targets of *this and other. -4- Remarks: The allocators of *this and other are not interchanged.->.get_memory_resource().
[ 2015-10-26 ]
Daniel adjusts wording to lib. fund. v2.
[ 2015-09-11, Telecon ]
Move to Tentatively Ready
Addresses: fund.ts.v2
[func.wrap.func.mod] says that the precondition of swap is
this->get_memory_resource() == other->get_memory_resource()
That compares two pointers and so requires the memory resource used by *this and other to be the exact same object. That doesn't seem correct (for one, it would essentially outlaw swapping all functions constructed with "plain" allocators, since they would each have their own resource_adaptor object and so the pointers will not compare equal). Presumably the intent is to compare the memory_resources for equality.
Also, other is a reference, not a pointer.
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-07-30 20:10:41 | admin | set | status: wp -> open |
2015-11-16 02:13:05 | admin | set | status: ready -> wp |
2015-10-26 20:17:22 | admin | set | messages: + msg7585 |
2015-09-14 21:38:11 | admin | set | messages: + msg7520 |
2015-09-14 21:38:11 | admin | set | status: new -> ready |
2015-08-21 17:32:01 | admin | set | messages: + msg7502 |
2015-08-04 00:00:00 | admin | create |