]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Explicitly default some copy ctors and assignments
authorJonathan Wakely <jwakely@redhat.com>
Tue, 8 Aug 2023 15:24:31 +0000 (16:24 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 18 Mar 2024 13:50:54 +0000 (13:50 +0000)
commita389921f175c30e8ca0da38ccb79ed60cf744fd4
treedaea100f83418ff5bff4d103eff1e2b97e6a82fe
parentdc0964f43dcee46dcd1843287a541668fd08a4a8
libstdc++: Explicitly default some copy ctors and assignments

The standard says that the implicit copy assignment operator is
deprecated for classes that have a user-provided copy constructor, and
vice versa.

libstdc++-v3/ChangeLog:

* include/bits/new_allocator.h (__new_allocator): Define copy
assignment operator as defaulted.
* include/std/complex (complex<float>, complex<double>)
(complex<long double>): Define copy constructor as defaulted.

(cherry picked from commit 008e439f34d4b356825a6c9b70245143f00bd353)
libstdc++-v3/include/bits/new_allocator.h
libstdc++-v3/include/std/complex
This page took 0.057432 seconds and 6 git commands to generate.