diff options
author | Determinant <[email protected]> | 2018-07-09 21:39:43 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-07-09 21:39:43 -0400 |
commit | c14b26fadcd643792960839bd1e05d7cbd39e123 (patch) | |
tree | fefc8f2d4cc654ad93c931287f8a25b1f64bccc7 /include | |
parent | 97956c08e679299e9900e7ea1f3b42607f2f51c6 (diff) |
...
Diffstat (limited to 'include')
-rw-r--r-- | include/salticidae/util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/salticidae/util.h b/include/salticidae/util.h index e51f984..05e7b66 100644 --- a/include/salticidae/util.h +++ b/include/salticidae/util.h @@ -48,7 +48,9 @@ class SalticidaeError: public std::exception { public: SalticidaeError(); SalticidaeError(const std::string &fmt, ...); - operator std::string() const; + + operator std::string() const { return msg; } + const char *what() const throw() override { return msg.c_str(); } }; class Logger { |