I\'m trying to create a custom exception that derives from std::exception and overrides what(). At first, I wrote it like this:
std::exception
what()
class U
What I've recently used is following:
#ifdef _MSC_VER #define NOEXCEPT _NOEXCEPT #else #define NOEXCEPT noexcept #endif
and then just use NOEXCEPT everywhere.
NOEXCEPT