diff options
Diffstat (limited to 'Exception.h')
-rw-r--r-- | Exception.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Exception.h b/Exception.h index 31c517b..633cb4f 100644 --- a/Exception.h +++ b/Exception.h @@ -2,16 +2,16 @@ #include <cstdarg> #include <exception> +#include <memory> class Exception : public std::exception { public: Exception(const char * fmt, ...); - virtual ~Exception(); - virtual const char * what(); + const char * what(); protected: Exception() = default; void va_format(va_list args, const char * fmt); - char * error = NULL; + std::unique_ptr<char> error = NULL; }; |