Deleted the copy constructor version of ResourceVector<T>::insert, like with append

Sun, 05 Mar 2017 16:54:42 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 05 Mar 2017 16:54:42 +0200
changeset 1189
0509b2b5eaa6
parent 1188
872c4a3f4151
child 1190
2edf54a5e56a

Deleted the copy constructor version of ResourceVector<T>::insert, like with append

src/types/resourcevector.h file | annotate | diff | comparison | revisions
--- a/src/types/resourcevector.h	Sun Mar 05 16:50:37 2017 +0200
+++ b/src/types/resourcevector.h	Sun Mar 05 16:54:42 2017 +0200
@@ -39,6 +39,7 @@
 	int indexOf(T* resource) const;
 	template<typename TT = T, typename... Args>
 	TT* insert(int position, Args&&... args);
+	void insert(int, T) = delete;
 	bool isEmpty() const;
 	void clear();
 	void removeAt(int position);

mercurial