use more explicit constructors

This commit is contained in:
Danny Robson 2016-03-17 18:09:40 +11:00
parent b263bbef0a
commit 1cdc6b4bad
3 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -41,7 +41,9 @@ namespace util {
size_t m_size;
public:
explicit
pool (unsigned int _capacity);
~pool ();
// Data management

View File

@ -46,7 +46,7 @@ namespace util { namespace posix {
struct dir {
public:
dir (const char *path);
explicit dir (const char *path);
~dir ();
operator DIR* (void);