This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of TS status.
Section: 3.7.10 [fund.ts.v2::propagate_const.algorithms] Status: TS Submitter: Tim Song Opened: 2015-07-08 Last modified: 2017-08-01
View all issues with TS status.
For consistency with the rest of the standard library, the non-member swap for propagate_const should call member swap.
Both P3 and NAD were suggested.
[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.
Adopted during NB comment 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_)). swap(pt1.t_, pt2.t_).