]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/conn.h
Declare unary ctors explicit.
[stg.git] / projects / rlm_stg / conn.h
index 4e7acc9b04998cd6287f0ce5c6623a2886a3f3cf..cecc080270bcc0c4e5b2163332c45d718fb08e3b 100644 (file)
@@ -39,7 +39,7 @@ class Conn
 {
     public:
         struct Error : std::runtime_error {
-            Error(const std::string& message) : runtime_error(message) {}
+            explicit Error(const std::string& message) : runtime_error(message) {}
         };
 
         typedef bool (*Callback)(void* /*data*/, const RESULT& /*result*/, bool /*status*/);