--- a/src/types.h Sat Jan 18 02:11:45 2014 +0200 +++ b/src/types.h Sun Jan 19 20:16:00 2014 +0200 @@ -41,6 +41,20 @@ return (a >= 0) ? a : -a; } +// ============================================================================= +// A simple basic exception +// +class simple_exception : public std::exception +{ + public: + simple_exception(); + + inline const char* what() const throw() + { + return "simple exception"; + } +}; + #ifdef IN_IDE_PARSER using FILE = void; #endif