From eb19550057f62f779b7fa30b14c7032fe4cf6a98 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 Nov 2020 01:57:53 +0100 Subject: Add final qualifier to enable devirtualization --- include/raul/Exception.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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)) {} -- cgit v1.2.1