mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
refactor: add missing explicit to toml::exception
This commit is contained in:
@@ -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_;}
|
||||||
|
Reference in New Issue
Block a user