summaryrefslogtreecommitdiff
path: root/src/resources/mstack.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-17 00:17:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-17 00:17:13 +0300
commit26f2c689298bb2077000b81ff3fe14328a89feb8 (patch)
tree2821e64165ca0ee2b7f18fb8ec3f53bf1f52a0a7 /src/resources/mstack.h
parente528b472ec803ecdec29e9e19c037c83adf30c1f (diff)
downloadplus-26f2c689298bb2077000b81ff3fe14328a89feb8.tar.gz
plus-26f2c689298bb2077000b81ff3fe14328a89feb8.tar.bz2
plus-26f2c689298bb2077000b81ff3fe14328a89feb8.tar.xz
plus-26f2c689298bb2077000b81ff3fe14328a89feb8.zip
Fix code style.
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)