diff options
author | andot <mabingyao@gmail.com> | 2014-07-23 14:39:05 +0800 |
---|---|---|
committer | andot <mabingyao@gmail.com> | 2014-07-23 14:39:05 +0800 |
commit | caa165ece89136a4ef6bde87df865d4288ff94cf (patch) | |
tree | 5994fc7695a79668a32c78999a3376c3cdb3edd8 /include/exception.h | |
parent | 2abffa80e10a9e0c4203310f0fa5b3f6949062e1 (diff) |
Fixed compatibility issue with VS2013
Diffstat (limited to 'include/exception.h')
-rw-r--r-- | include/exception.h | 4 |
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(); } |