public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc/devel/ranger] libstdc++: Mark experimental::net::system_context ctor deleted Date: Wed, 17 Jun 2020 20:43:09 +0000 (GMT) [thread overview] Message-ID: <20200617204309.E99AB3A8B03C@sourceware.org> (raw) https://gcc.gnu.org/g:8c9d69bafc8fc1f31f6cb50dffab106641d086d0 commit 8c9d69bafc8fc1f31f6cb50dffab106641d086d0 Author: Thomas Rodgers <rodgert@appliantology.com> Date: Thu Apr 23 13:42:46 2020 -0700 libstdc++: Mark experimental::net::system_context ctor deleted * include/experimental/net/executor (system_context): Mark system_context::system_context() = delete. * testsuite/experimental/net/executor/1.cc: Add new test to check system_context is not default constructible. Diff: --- libstdc++-v3/ChangeLog | 7 +++++++ libstdc++-v3/include/experimental/executor | 2 +- libstdc++-v3/testsuite/experimental/net/executor/1.cc | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7cca91e090b..ecb8617d02a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -14,6 +14,13 @@ * include/std/version (__cpp_lib_three_way_comparison): Define for freestanding builds. +2020-04-23 Thomas Rodgers <rodgert@appliantology.com> + + * include/experimental/net/executor (system_context): Mark + system_context::system_context() = delete. + * testsuite/experimental/net/executor/1.cc: Add new + test to check system_context is not default constructible. + 2020-04-23 Iain Sandoe <iain@sandoe.co.uk> * include/std/coroutine: Update the inline namespace to __n4861. diff --git a/libstdc++-v3/include/experimental/executor b/libstdc++-v3/include/experimental/executor index b5c6e18a19a..fa39eaa0468 100644 --- a/libstdc++-v3/include/experimental/executor +++ b/libstdc++-v3/include/experimental/executor @@ -850,7 +850,7 @@ inline namespace v1 // construct / copy / destroy: - system_context() = default; + system_context() = delete; system_context(const system_context&) = delete; system_context& operator=(const system_context&) = delete; diff --git a/libstdc++-v3/testsuite/experimental/net/executor/1.cc b/libstdc++-v3/testsuite/experimental/net/executor/1.cc index 456d620e193..cd0af4b7737 100644 --- a/libstdc++-v3/testsuite/experimental/net/executor/1.cc +++ b/libstdc++-v3/testsuite/experimental/net/executor/1.cc @@ -85,9 +85,16 @@ test02() VERIFY( e == g ); } +void +test03() +{ + static_assert( ! std::is_default_constructible<net::system_context>::value, "" ); +} + int main() { test01(); test02(); + test03(); }
reply other threads:[~2020-06-17 20:43 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200617204309.E99AB3A8B03C@sourceware.org \ --to=aldyh@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).