You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We describe swapping as either doing swap(a, b) or otherwise calling swap - which in the library wording always means ::std::swap, since we don't otherwise describe what happens here. But in these contexts, what we mean is that we're calling swap in the context described in [swappable.requirements]/3 (i.e. using ::std::swap; swap(a, b)). This is done correctly in the description for is_swappable_with in [meta.unary.prop].
Is updating all these sections an editorial fix (this is the behavior we actually mean, just poorly specified) or does this require a library issue?
The text was updated successfully, but these errors were encountered:
I think it counts as editorial, since it's clarifying the intent. There is no doubt about the intent, so if the change has normative impact, it's because the current wording does not describe the intended behaviour correctly.
From the wiki: "Unclear writing, when the intention of the text in question is well-known to the committee, but the presentation could be clearer."
In the following sections:
iter_swap
: [alg.swap]/7pair::swap
: [pairs.pair]/30optional::swap
: [optional.swap]/2tuple::swap
: [tuple.swap]/2variant::swap
: [variant.swap]/2We describe swapping as either doing
swap(a, b)
or otherwise callingswap
- which in the library wording always means::std::swap
, since we don't otherwise describe what happens here. But in these contexts, what we mean is that we're callingswap
in the context described in [swappable.requirements]/3 (i.e.using ::std::swap; swap(a, b)
). This is done correctly in the description foris_swappable_with
in [meta.unary.prop].Is updating all these sections an editorial fix (this is the behavior we actually mean, just poorly specified) or does this require a library issue?
The text was updated successfully, but these errors were encountered: