summaryrefslogtreecommitdiff
path: root/src/resources/mstack.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/mstack.h')
-rw-r--r--src/resources/mstack.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/mstack.h b/src/resources/mstack.h
index 3e7c28b80..c7c78a748 100644
--- a/src/resources/mstack.h
+++ b/src/resources/mstack.h
@@ -28,7 +28,7 @@
template<typename T>
struct MStack final
{
- MStack(const size_t maxSize) :
+ explicit MStack(const size_t maxSize) :
mStack(new T[maxSize]),
mMaxSize(maxSize),
mPointer(mStack - 1),
@@ -42,6 +42,8 @@ struct MStack final
delete [] mStack;
}
+ A_DELETE_COPY(MStack)
+
T &push()
{
if (mPointer == mEndPointer)