diff options
Diffstat (limited to 'src/crepe/Exception.cpp')
-rw-r--r-- | src/crepe/Exception.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/Exception.cpp b/src/crepe/Exception.cpp index dab8f2e..a1fa765 100644 --- a/src/crepe/Exception.cpp +++ b/src/crepe/Exception.cpp @@ -6,7 +6,7 @@ using namespace std; using namespace crepe; -const char * Exception::what() { return error.c_str(); } +const char * Exception::what() const noexcept { return error.c_str(); } Exception::Exception(const char * fmt, ...) { va_list args; @@ -14,3 +14,4 @@ Exception::Exception(const char * fmt, ...) { this->error = va_stringf(args, fmt); va_end(args); } + |