summaryrefslogtreecommitdiffstats
path: root/include/raul/Exception.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/raul/Exception.hpp')
-rw-r--r--include/raul/Exception.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/raul/Exception.hpp b/include/raul/Exception.hpp
index ef5b764..74f694a 100644
--- a/include/raul/Exception.hpp
+++ b/include/raul/Exception.hpp
@@ -19,7 +19,10 @@ class Exception : public std::exception
{
public:
// NOLINTNEXTLINE(modernize-use-override, hicpp-use-override)
- const char* what() const noexcept final override { return _what.c_str(); }
+ [[nodiscard]] const char* what() const noexcept final override
+ {
+ return _what.c_str();
+ }
protected:
explicit Exception(std::string what)