summaryrefslogtreecommitdiff
path: root/libcc1/connection.hh
diff options
context:
space:
mode:
Diffstat (limited to 'libcc1/connection.hh')
-rw-r--r--libcc1/connection.hh7
1 files changed, 3 insertions, 4 deletions
diff --git a/libcc1/connection.hh b/libcc1/connection.hh
index a0e99bdbd98..15ad1716a29 100644
--- a/libcc1/connection.hh
+++ b/libcc1/connection.hh
@@ -48,6 +48,9 @@ namespace cc1_plugin
virtual ~connection () = default;
+ connection (const connection &) = delete;
+ connection &operator= (const connection &) = delete;
+
// Send a single character. This is used to introduce various
// higher-level protocol elements.
status send (char c);
@@ -95,10 +98,6 @@ namespace cc1_plugin
private:
- // Declared but not defined, to prevent use.
- connection (const connection &);
- connection &operator= (const connection &);
-
// Helper function for the wait_* methods.
status do_wait (bool);