queue/IdTable: make non-copyable
This commit is contained in:
parent
23adf50194
commit
2f32df1f09
@ -46,6 +46,9 @@ public:
|
|||||||
delete[] data;
|
delete[] data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IdTable(const IdTable &) = delete;
|
||||||
|
IdTable &operator=(const IdTable &) = delete;
|
||||||
|
|
||||||
int IdToPosition(unsigned id) const noexcept {
|
int IdToPosition(unsigned id) const noexcept {
|
||||||
return id < size
|
return id < size
|
||||||
? data[id]
|
? data[id]
|
||||||
|
Loading…
Reference in New Issue
Block a user