PR libstdc++/88996 Implement P0439R0
authorEdward Smith-Rowland <3dw4rd@verizon.net>
Mon, 4 Mar 2019 20:11:14 +0000 (20:11 +0000)
committerEdward Smith-Rowland <emsr@gcc.gnu.org>
Mon, 4 Mar 2019 20:11:14 +0000 (20:11 +0000)
commit94014ee95b2594859168baac31da4c846a256807
treeb79096f9660e10e7d5a6b520823cbbc9313e6894
parentf0103f7bb010405798fe14afc5972f327835ae57
PR libstdc++/88996 Implement P0439R0

2019-03-04  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR libstdc++/88996 Implement P0439R0
Make std::memory_order a scoped enumeration.
* include/bits/atomic_base.h: For C++20 make memory_order a scoped enum,
add variables for the old enumerators.  Adjust calls.
* testsuite/29_atomics/headers/atomic/types_std_c++2a.cc: New test.
* testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc: New test.

From-SVN: r269372
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/atomic_base.h
libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++2a.cc [new file with mode: 0644]
libstdc++-v3/testsuite/29_atomics/headers/atomic/types_std_c++2a_neg.cc [new file with mode: 0644]