Skip to content

Commit

Permalink
[09_queue] default constructor should be deleted.
Browse files Browse the repository at this point in the history
Liam0205 committed Oct 10, 2018
1 parent 8e7d064 commit 29c9ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c-cpp/09_queue/array_queue.hpp
Original file line number Diff line number Diff line change
@@ -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];
}

0 comments on commit 29c9ffc

Please sign in to comment.