[6/6] Use DISABLE_COPY_AND_ASSIGN in auto_delete_vec
diff mbox series

Message ID 20191205200852.19076-7-dmalcolm@redhat.com
State New
Headers show
Series
  • Use DISABLE_COPY_AND_ASSIGN
Related show

Commit Message

David Malcolm Dec. 5, 2019, 8:08 p.m. UTC
gcc/ChangeLog:
	* vec.h (auto_delete_vec): Use DISABLE_COPY_AND_ASSIGN.
---
 gcc/vec.h | 3 +++
 1 file changed, 3 insertions(+)

Patch
diff mbox series

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.  */