diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-06-19 11:19:58 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2024-06-21 17:07:00 +0100 |
commit | 139d65d1f5a60ac90479653a4f9b63618509f3f9 (patch) | |
tree | 2c07aeff587c5d596f02a23b644edd38ac8b54be /gcc | |
parent | b3743181899c5490a94c4dbde56a69ab77a40f11 (diff) | |
download | gcc-139d65d1f5a60ac90479653a4f9b63618509f3f9.zip gcc-139d65d1f5a60ac90479653a4f9b63618509f3f9.tar.gz gcc-139d65d1f5a60ac90479653a4f9b63618509f3f9.tar.bz2 |
libstdc++: Don't use std::__is_scalar in std::valarray initialization [PR115497]
This removes the use of the std::__is_scalar trait from <valarray>,
where it can be replaced by __is_trivial. It's used to decide whether we
can use memset to value-initialize valarray elements, but memset is
suitable for any trivial types, because value-initializing them is
equivalent to filling them with zeros.
This is another step towards removing the class templates in
<bits/cpp_type_traits.h> that conflict with Clang built-in names.
libstdc++-v3/ChangeLog:
PR libstdc++/115497
* include/bits/valarray_array.h (__valarray_default_construct):
Use __is_trivial(_Tp). instead of __is_scalar<_Tp>.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions