refactor: add missing explicit to toml::exception

This commit is contained in:
ToruNiina
2020-01-19 17:51:24 +09:00
parent 8c7d83d985
commit f2c8d0e279

View File

@@ -12,7 +12,7 @@ namespace toml
struct exception : public std::exception struct exception : public std::exception
{ {
public: public:
exception(const source_location& loc): loc_(loc) {} explicit exception(const source_location& loc): loc_(loc) {}
virtual ~exception() noexcept override = default; virtual ~exception() noexcept override = default;
virtual const char* what() const noexcept override {return "";} virtual const char* what() const noexcept override {return "";}
virtual source_location const& location() const noexcept {return loc_;} virtual source_location const& location() const noexcept {return loc_;}