summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-12 01:57:53 +0100
committerDavid Robillard <d@drobilla.net>2020-11-12 01:57:53 +0100
commiteb19550057f62f779b7fa30b14c7032fe4cf6a98 (patch)
tree1e459de617f0d4f4cd0e5aab15ffd82d7289c9bc
parent0082648de386222f4bc1c0e000cfec016190750e (diff)
downloadraul-eb19550057f62f779b7fa30b14c7032fe4cf6a98.tar.gz
raul-eb19550057f62f779b7fa30b14c7032fe4cf6a98.tar.bz2
raul-eb19550057f62f779b7fa30b14c7032fe4cf6a98.zip
Add final qualifier to enable devirtualization
-rw-r--r--include/raul/Exception.hpp2
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)) {}