diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dbe9c82 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vscode/ \ No newline at end of file diff --git a/src/main/cpp/algorithms/datastructures/stack/Stack.h b/src/main/cpp/algorithms/datastructures/stack/Stack.h index 2758e83..a1ba8f9 100644 --- a/src/main/cpp/algorithms/datastructures/stack/Stack.h +++ b/src/main/cpp/algorithms/datastructures/stack/Stack.h @@ -42,7 +42,7 @@ class Stack virtual ~Stack() {} // return the ID the stack implementation - virtual int id() { return id_; } + virtual int id() const { return id_; } // return the number of elements in the stack virtual int size() = 0;