summaryrefslogtreecommitdiff
path: root/include/exception.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/exception.h')
-rw-r--r--include/exception.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/exception.h b/include/exception.h
index aff0afc..94aaa85 100644
--- a/include/exception.h
+++ b/include/exception.h
@@ -52,7 +52,11 @@ public:
* Overridden what method
* @return const char *
*/
+#ifdef _NOEXCEPT
+ virtual const char *what() const _NOEXCEPT override
+#else
virtual const char *what() const noexcept override
+#endif
{
return _message.c_str();
}