diff options
author | David Robillard <d@drobilla.net> | 2020-11-12 01:57:53 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-12 01:57:53 +0100 |
commit | eb19550057f62f779b7fa30b14c7032fe4cf6a98 (patch) | |
tree | 1e459de617f0d4f4cd0e5aab15ffd82d7289c9bc /include/raul/Exception.hpp | |
parent | 0082648de386222f4bc1c0e000cfec016190750e (diff) | |
download | raul-eb19550057f62f779b7fa30b14c7032fe4cf6a98.tar.gz raul-eb19550057f62f779b7fa30b14c7032fe4cf6a98.tar.bz2 raul-eb19550057f62f779b7fa30b14c7032fe4cf6a98.zip |
Add final qualifier to enable devirtualization
Diffstat (limited to 'include/raul/Exception.hpp')
-rw-r--r-- | include/raul/Exception.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/raul/Exception.hpp b/include/raul/Exception.hpp index 86fe01d..478017d 100644 --- a/include/raul/Exception.hpp +++ b/include/raul/Exception.hpp @@ -26,7 +26,7 @@ namespace Raul { /** An exception (unexpected error). */ class Exception : public std::exception { public: - const char* what() const noexcept override { return _what.c_str(); } + const char* what() const noexcept final override { return _what.c_str(); } protected: explicit Exception(std::string what) : _what(std::move(what)) {} |