MSVC noexcept fix

This commit is contained in:
Jack Andersen
2015-07-22 09:06:24 -10:00
parent 403e2549ee
commit 085920205b
2 changed files with 14 additions and 5 deletions

View File

@@ -36,7 +36,11 @@ public:
std::wstring_convert<std::codecvt_utf8<wchar_t>> conv;
m_what.assign(conv.to_bytes(buf));
}
#if _MSC_VER
inline const char* what() const {return m_what.c_str();}
#else
inline const char* what() const noexcept {return m_what.c_str();}
#endif
};
/**