summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-01-26 12:42:39 +0100
committerJulian Andres Klode <jak@debian.org>2016-01-26 12:45:32 +0100
commit96f66f82cfcd3f21f73542375f9c722ac907c076 (patch)
tree84eb8802e3ca5e89f4b0c8674912216578c29b57 /apt-pkg
parent0479205d5869805da3122e2683d2e5ecd0058815 (diff)
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
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/pkgcachegen.h5
1 files changed, 5 insertions, 0 deletions
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: