From 2f32df1f09225b19fe0d58b7bf97b33efd7c8e46 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Nov 2017 12:24:35 +0100 Subject: [PATCH] queue/IdTable: make non-copyable --- src/queue/IdTable.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/queue/IdTable.hxx b/src/queue/IdTable.hxx index 60e184091..5be7c7e4e 100644 --- a/src/queue/IdTable.hxx +++ b/src/queue/IdTable.hxx @@ -46,6 +46,9 @@ public: delete[] data; } + IdTable(const IdTable &) = delete; + IdTable &operator=(const IdTable &) = delete; + int IdToPosition(unsigned id) const noexcept { return id < size ? data[id]