Created on 2015-07-08.00:00:00 last changed 90 months ago
Proposed resolution:
This wording is relative to N4529.
Edit [propagate_const.algorithms] as indicated:
-1- template <class T> constexpr void swap(propagate_const<T>& pt1, propagate_const<T>& pt2) noexcept(see below)-2- The constant-expression in the exception-specification is noexcept(
-3- Effects:swap(pt1.t_, pt2.t_)pt1.swap(pt2)).swap(pt1.t_, pt2.t_)pt1.swap(pt2).
[ 2016-11-08, Issaquah ]
Adopted during NB comment resolution
[ 2016-02-20, Ville comments ]
Feedback from an implementation:
The implementation of propagate_const in libstdc++ calls propagate_const's member swap from the non-member swap.[ 2015-07, Telecon ]
Both P3 and NAD were suggested.
Addresses: fund.ts.v2
For consistency with the rest of the standard library, the non-member swap for propagate_const should call member swap.
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-07-30 20:10:41 | admin | set | status: wp -> open |
2016-11-20 18:55:07 | admin | set | messages: + msg8646 |
2016-11-20 18:55:07 | admin | set | status: new -> wp |
2016-02-20 20:46:37 | admin | set | messages: + msg7981 |
2015-09-27 20:55:06 | admin | set | messages: + msg7558 |
2015-07-12 12:59:33 | admin | set | messages: + msg7482 |
2015-07-08 00:00:00 | admin | create |