]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Finish implementing LWG 3413 for propagate_const
authorJonathan Wakely <jwakely@redhat.com>
Tue, 8 Jun 2021 13:56:57 +0000 (14:56 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 8 Jun 2021 14:01:06 +0000 (15:01 +0100)
commitd319517e809ee50496db29e552f86a83a14c837c
treeeb7f646279de62312995493d391e8fc95b82c621
parent7a56d3d3e99cc77ad8a6a674870c814da6225675
libstdc++: Finish implementing LWG 3413 for propagate_const

We already have conditional noexcept so this just constrains the
non-member swap overload.

Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:

* include/experimental/propagate_const (swap): Constrain.
* testsuite/experimental/propagate_const/swap/lwg3413.cc: New test.
libstdc++-v3/include/experimental/propagate_const
libstdc++-v3/testsuite/experimental/propagate_const/swap/lwg3413.cc [new file with mode: 0644]