diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-07-26 14:05:58 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-07-26 17:02:46 +0100 |
commit | c01b344e814001e07fd304ce98d013d811e90192 (patch) | |
tree | 9168fd0d7d64763cdc7236fd7beb224b056a5ea6 /gcc | |
parent | d74aed3d7aefbb661ae629a91ca7baa4916085f0 (diff) | |
download | gcc-c01b344e814001e07fd304ce98d013d811e90192.zip gcc-c01b344e814001e07fd304ce98d013d811e90192.tar.gz gcc-c01b344e814001e07fd304ce98d013d811e90192.tar.bz2 |
libstdc++: Add deprecated attribute to std::random_shuffle declarations
We already have these attributes on the definitions in <bits/stl_algo.h>
but they don't work due to PR c++/84542. Add the attributes to the
declarations in <bits/algorithmfwd.h> as well, and add a test.
libstdc++-v3/ChangeLog:
* include/bits/algorithmfwd.h (random_shuffle): Add deprecated
attribute.
* include/bits/stl_algo.h (random_shuffle): Correct comments.
* testsuite/25_algorithms/random_shuffle/1.cc: Disable
deprecated warnings.
* testsuite/25_algorithms/random_shuffle/59603.cc: Likewise.
* testsuite/25_algorithms/random_shuffle/moveable.cc: Likewise.
* testsuite/25_algorithms/random_shuffle/deprecated.cc: New
test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions