[PATCH 6/6] Use DISABLE_COPY_AND_ASSIGN in auto_delete_vec

David Malcolm dmalcolm@redhat.com
Thu Dec 5 20:09:00 GMT 2019


gcc/ChangeLog:
	* vec.h (auto_delete_vec): Use DISABLE_COPY_AND_ASSIGN.
---
 gcc/vec.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/vec.h b/gcc/vec.h
index 1957739ecb56..706a6103b744 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -1559,6 +1559,9 @@ class auto_delete_vec : public auto_vec <T *>
   auto_delete_vec (size_t s) : auto_vec <T *> (s) {}
 
   ~auto_delete_vec ();
+
+private:
+  DISABLE_COPY_AND_ASSIGN(auto_delete_vec<T>);
 };
 
 /* Conditionally allocate heap memory for VEC and its internal vector.  */
-- 
2.21.0



More information about the Gcc-patches mailing list