queue/IdTable: make non-copyable

This commit is contained in:
Max Kellermann 2017-11-26 12:24:35 +01:00
parent 23adf50194
commit 2f32df1f09

View File

@ -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]