summaryrefslogtreecommitdiffstats
path: root/raul/ArrayStack.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-09-30 08:23:42 +0000
committerDavid Robillard <d@drobilla.net>2010-09-30 08:23:42 +0000
commit692b624398a3b9fbb560f47e13b588a92479a68d (patch)
tree4c41883cfa2cb9e2916cd9c0248a4d7787b39183 /raul/ArrayStack.hpp
parent9adc660a3144b47ed9a49ea57298631b1c19231a (diff)
downloadraul-692b624398a3b9fbb560f47e13b588a92479a68d.tar.gz
raul-692b624398a3b9fbb560f47e13b588a92479a68d.tar.bz2
raul-692b624398a3b9fbb560f47e13b588a92479a68d.zip
Declare single-argument constructors explicit (except where implicit conversion is actually desired).
See http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Explicit_Constructors git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2619 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/ArrayStack.hpp')
-rw-r--r--raul/ArrayStack.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/raul/ArrayStack.hpp b/raul/ArrayStack.hpp
index e4aa33c..2204b69 100644
--- a/raul/ArrayStack.hpp
+++ b/raul/ArrayStack.hpp
@@ -33,7 +33,7 @@ template <class T>
class ArrayStack : public Array<T>
{
public:
- ArrayStack(size_t size = 0) : Array<T>(size), _top(0) {}
+ explicit ArrayStack(size_t size = 0) : Array<T>(size), _top(0) {}
ArrayStack(size_t size, T initial_value) : Array<T>(size, initial_value), _top(0) {}