From 96f66f82cfcd3f21f73542375f9c722ac907c076 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 26 Jan 2016 12:42:39 +0100 Subject: Delete copy constructor and operator= for Dynamic This would mess up reference counting and should not be allowed (it could be implemented correctly, but it would not be efficient and we do not need it). Gbp-Dch: ignore --- apt-pkg/pkgcachegen.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apt-pkg/pkgcachegen.h') diff --git a/apt-pkg/pkgcachegen.h b/apt-pkg/pkgcachegen.h index ea288ad6e..f22a2df4e 100644 --- a/apt-pkg/pkgcachegen.h +++ b/apt-pkg/pkgcachegen.h @@ -93,6 +93,11 @@ class APT_HIDDEN pkgCacheGenerator /*{{{*/ ~Dynamic() { toReMap.pop_back(); } + +#if __cplusplus >= 201103L + Dynamic(const Dynamic&) = delete; + void operator=(const Dynamic&) = delete; +#endif }; protected: -- cgit v1.2.3