]> 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>
Wed, 9 Aug 2023 14:19:15 +0000 (15:19 +0100)
commit008e439f34d4b356825a6c9b70245143f00bd353
treec5396025519c70fb32090e0c07cdd266b601fafc
parentb9e5a4b4f035ba85b1a4065b751c2d583206b4e3
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.
libstdc++-v3/include/bits/new_allocator.h
libstdc++-v3/include/std/complex