diff options
author | David Robillard <d@drobilla.net> | 2022-06-29 09:45:46 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-20 16:24:23 -0400 |
commit | d855f8f67a4588f44ade0ed19744c99bfe81e76c (patch) | |
tree | 83128be6067bdd21a4c6a9440e15f387e20e9025 /include/raul/Exception.hpp | |
parent | cf72f2855fccaf1c579388bcdba2a219a9983d96 (diff) | |
download | raul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.tar.gz raul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.tar.bz2 raul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.zip |
Use nodiscard attribute
Diffstat (limited to 'include/raul/Exception.hpp')
-rw-r--r-- | include/raul/Exception.hpp | 5 |
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) |