libstdc++: Use type_identity_t for non-deducible std::atomic_xxx args
authorJonathan Wakely <jwakely@redhat.com>
Mon, 13 Jun 2022 15:36:14 +0000 (16:36 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 13 Jun 2022 15:39:07 +0000 (16:39 +0100)
commit30cc1b65e4efa1a2c57fec5574fcae7a446b822f
tree91e9e0b7d43ee60928513c8ec2137febb16d3903
parentb3dd7d8b48227d3489039ca66b6c0ea2da743255
libstdc++: Use type_identity_t for non-deducible std::atomic_xxx args

This is LWG 3220 which is about to become Tentatively Ready.

libstdc++-v3/ChangeLog:

* include/std/atomic (__atomic_val_t): Use __type_identity_t
instead of atomic<T>::value_type, as per LWG 3220.
* testsuite/29_atomics/atomic/lwg3220.cc: New test.
libstdc++-v3/include/std/atomic
libstdc++-v3/testsuite/29_atomics/atomic/lwg3220.cc [new file with mode: 0644]