]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libcc1/connection.hh
libcc1: delete copy constructor and assignment operators
[thirdparty/gcc.git] / libcc1 / connection.hh
index a0e99bdbd98fd7c9f067d5f54dd40b2f8cfbc0a0..15ad1716a29ed8f3c0dc1449844b30046bac0516 100644 (file)
@@ -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);