]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Make std::basic_format_context non-copyable [PR114387]
authorJonathan Wakely <jwakely@redhat.com>
Wed, 10 Jul 2024 09:27:24 +0000 (10:27 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 10 Jul 2024 21:05:22 +0000 (22:05 +0100)
commitd8cd8521185436ea45ed48c5dd481277e9b8a98d
tree9f8ef341aca28631a2de618f91b410d127d4e818
parent9f758953eb2cb89e306025dc232ae20da6cb860a
libstdc++: Make std::basic_format_context non-copyable [PR114387]

Users are not supposed to create objects of this type, and there's no
reason it needs to be copyable. LWG 4061 makes it non-copyable and
non-default constructible.

libstdc++-v3/ChangeLog:

PR libstdc++/114387
* include/std/format (basic_format_context): Define copy
operations as deleted, as per LWG 4061.
* testsuite/std/format/context.cc: New test.
libstdc++-v3/include/std/format
libstdc++-v3/testsuite/std/format/context.cc [new file with mode: 0644]