diff options
Diffstat (limited to 'common/stack.h')
-rw-r--r-- | common/stack.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/stack.h b/common/stack.h index 876efacc3f..238d0f6433 100644 --- a/common/stack.h +++ b/common/stack.h @@ -88,7 +88,11 @@ protected: 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(); } |