mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Add override qualifier to bad_optional_access::what() - fixes GCC -Wsuggest-override warning
This commit is contained in:
parent
d0eba0a754
commit
38473d39fe
|
@ -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";
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user