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: public:
using value_type = char; using value_type = char;
circular (size_t bytes); explicit circular (size_t bytes);
~circular (); ~circular ();
circular (const circular&) = delete; circular (const circular&) = delete;

View File

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

View File

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