Add override qualifier to bad_optional_access::what() - fixes GCC -Wsuggest-override warning

This commit is contained in:
Vas Crabb 2020-11-15 04:44:07 +11:00 committed by The Phantom Derpstorm
parent d0eba0a754
commit 38473d39fe
2 changed files with 2 additions and 2 deletions

View File

@ -657,7 +657,7 @@ namespace sol {
class bad_optional_access : public std::exception {
public:
bad_optional_access() = default;
const char* what() const noexcept {
const char* what() const noexcept override {
return "Optional has no value";
}
};

View File

@ -4631,7 +4631,7 @@ namespace sol {
class bad_optional_access : public std::exception {
public:
bad_optional_access() = default;
const char* what() const noexcept {
const char* what() const noexcept override {
return "Optional has no value";
}
};