]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: port bitwise relocatable away from is_trivial
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Mon, 9 Dec 2024 01:11:19 +0000 (02:11 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 10 Dec 2024 00:50:25 +0000 (00:50 +0000)
commite4a0157c2397c9b582cff71d114240a6b083a3dc
treee199ae461508029b8b6c100b0a8a32d583220364
parent65b5b828123abb925cca1cbb5bab31da31bfbbd7
libstdc++: port bitwise relocatable away from is_trivial

In preparation for the deprecation of is_trivial (P3247R2).
"bitwise relocation" (or "trivial relocation" à la P1144/P2786)
doesn't need the full-fledged notion of triviality, just checking for a
trivial move constructor and a trivial destructor is sufficient.

libstdc++-v3/ChangeLog:

* include/bits/stl_uninitialized.h: Amended the
__is_bitwise_relocatable type trait.

Signed-off-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
libstdc++-v3/include/bits/stl_uninitialized.h