exception: Make what() member function nodiscard

This commit is contained in:
Lioncash committed 2021-07-27 04:14:32 -04:00
1 parent 90f3678ada
commit e490ddf327
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ class Exception : public std::exception {
public:
explicit Exception(std::string message) noexcept : err_message{std::move(message)} {}
const char* what() const noexcept override {
[[nodiscard]] const char* what() const noexcept override {
return err_message.c_str();
}