[09_queue] default constructor should be deleted.
This commit is contained in:
parent
8e7d064f8f
commit
29c9ffc9c5
@ -14,7 +14,7 @@ class ArrayQueue {
|
||||
size_t tail_ = 0;
|
||||
|
||||
public:
|
||||
ArrayQueue() = default;
|
||||
ArrayQueue() = delete;
|
||||
ArrayQueue(size_t capacity) : capacity_(capacity) {
|
||||
items_ = new T[capacity];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user