aboutsummaryrefslogtreecommitdiff
path: root/common/stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/stack.h')
-rw-r--r--common/stack.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/common/stack.h b/common/stack.h
index e20e81028d..be6f1b8d10 100644
--- a/common/stack.h
+++ b/common/stack.h
@@ -83,16 +83,13 @@ public:
*/
template<class T>
class Stack {
-protected:
+private:
Array<T> _stack;
+
public:
Stack<T>() {}
Stack<T>(const Array<T> &stackContent) : _stack(stackContent) {}
- Stack<T>& operator=(const Stack<T> &st) {
- _stack = st._stack;
- return *this;
- }
bool empty() const {
return _stack.empty();
}