-
- Downloads
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.
Showing
- libstdc++-v3/include/bits/algorithmfwd.h 2 additions, 0 deletionslibstdc++-v3/include/bits/algorithmfwd.h
- libstdc++-v3/include/bits/stl_algo.h 3 additions, 3 deletionslibstdc++-v3/include/bits/stl_algo.h
- libstdc++-v3/testsuite/25_algorithms/random_shuffle/1.cc 1 addition, 0 deletionslibstdc++-v3/testsuite/25_algorithms/random_shuffle/1.cc
- libstdc++-v3/testsuite/25_algorithms/random_shuffle/59603.cc 1 addition, 0 deletionslibstdc++-v3/testsuite/25_algorithms/random_shuffle/59603.cc
- libstdc++-v3/testsuite/25_algorithms/random_shuffle/deprecated.cc 19 additions, 0 deletions...+-v3/testsuite/25_algorithms/random_shuffle/deprecated.cc
- libstdc++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc 1 addition, 0 deletions...c++-v3/testsuite/25_algorithms/random_shuffle/moveable.cc
Loading
Please register or sign in to comment