From f2c8d0e2792e961381ae641718e330153b9d5b58 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sun, 19 Jan 2020 17:51:24 +0900 Subject: [PATCH] refactor: add missing explicit to toml::exception --- toml/exception.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toml/exception.hpp b/toml/exception.hpp index 1b0005e..42ae3b1 100644 --- a/toml/exception.hpp +++ b/toml/exception.hpp @@ -12,7 +12,7 @@ namespace toml struct exception : public std::exception { public: - exception(const source_location& loc): loc_(loc) {} + explicit exception(const source_location& loc): loc_(loc) {} virtual ~exception() noexcept override = default; virtual const char* what() const noexcept override {return "";} virtual source_location const& location() const noexcept {return loc_;}