From 1cdc6b4badeaf5bcb4bbe606af7550062655d636 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 17 Mar 2016 18:09:40 +1100 Subject: [PATCH] use more explicit constructors --- memory/buffer/circular.hpp | 2 +- pool.hpp | 2 ++ posix/dir.hpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/memory/buffer/circular.hpp b/memory/buffer/circular.hpp index f58f3fe9..e853bfaf 100644 --- a/memory/buffer/circular.hpp +++ b/memory/buffer/circular.hpp @@ -27,7 +27,7 @@ namespace util { namespace memory { namespace buffer { public: using value_type = char; - circular (size_t bytes); + explicit circular (size_t bytes); ~circular (); circular (const circular&) = delete; diff --git a/pool.hpp b/pool.hpp index dbe3a460..cd601c7e 100644 --- a/pool.hpp +++ b/pool.hpp @@ -41,7 +41,9 @@ namespace util { size_t m_size; public: + explicit pool (unsigned int _capacity); + ~pool (); // Data management diff --git a/posix/dir.hpp b/posix/dir.hpp index ad9ce548..4415124e 100644 --- a/posix/dir.hpp +++ b/posix/dir.hpp @@ -46,7 +46,7 @@ namespace util { namespace posix { struct dir { public: - dir (const char *path); + explicit dir (const char *path); ~dir (); operator DIR* (void);