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
#IFs may work, even if a bit hacky.
#IF
You could just do this:
#if __GNUG__ virtual const char* what() const noexcept override #else virtual const char* what() const override #endif //method body