diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-03-18 16:58:23 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-06-07 10:26:18 +0100 |
commit | 94997567ea5cbeb35571e94cf76d7f99ea3f9c43 (patch) | |
tree | abd7036e5416199e5adee3f84648aa3cafe9e04d /libcpp | |
parent | e4f1c1be61d916345655d5edba309502046c9473 (diff) | |
download | gcc-94997567ea5cbeb35571e94cf76d7f99ea3f9c43.zip gcc-94997567ea5cbeb35571e94cf76d7f99ea3f9c43.tar.gz gcc-94997567ea5cbeb35571e94cf76d7f99ea3f9c43.tar.bz2 |
libstdc++: Optimize std::to_address
We can use if-constexpr and variable templates to simplify and optimize
std::to_address. This should compile faster (and run faster for -O0)
than dispatching to the pre-C++20 std::__to_address overloads.
libstdc++-v3/ChangeLog:
* include/bits/ptr_traits.h (to_address): Optimize.
* testsuite/20_util/to_address/1_neg.cc: Adjust dg-error text.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions