]> git.ipfire.org Git - thirdparty/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>
Thu, 9 Nov 2023 08:04:30 +0000 (08:04 +0000)
commit57b04ec052f8fb7e98bd8bc4a6ed16cb19a315d5
treefcfcb36d64f47ec9a6e1da21ae62d8b3a6d24f6f
parenta0a2d15215152cc430d8fb1e5a600abddbc3b051
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