diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-11-25 21:55:09 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-12-03 21:34:25 +0000 |
commit | aa7acf6fc9251cc9bdb9a406dc58439eb54e1217 (patch) | |
tree | 33ad9d5de33224d8c0a00cdf7ccbb8d962cf468f /libstdc++-v3/include/std/numeric | |
parent | 84b40a1c1b2c9e3feb546838fa988d653eed0755 (diff) | |
download | gcc-aa7acf6fc9251cc9bdb9a406dc58439eb54e1217.zip gcc-aa7acf6fc9251cc9bdb9a406dc58439eb54e1217.tar.gz gcc-aa7acf6fc9251cc9bdb9a406dc58439eb54e1217.tar.bz2 |
libstdc++: Simplify allocator propagation helpers using 'if constexpr'
Use diagnostic pragmas to allow using `if constexpr` in C++11 mode, so
that we don't need to use tag dispatching.
These helpers could be removed entirely by just using `if constexpr`
directly in the container member functions, but that's a slightly larger
change that can happen later.
It also looks like we could remove the __alloc_on_copy(const Alloc&)
overload, which is unused.
libstdc++-v3/ChangeLog:
* include/bits/alloc_traits.h (__do_alloc_on_copy): Remove.
(__do_alloc_on_move __do_alloc_on_swap): Remove.
(__alloc_on_copy, __alloc_on_move, __alloc_on_swap): Use if
constexpr.
Diffstat (limited to 'libstdc++-v3/include/std/numeric')
0 files changed, 0 insertions, 0 deletions