diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-23 19:16:19 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-23 19:16:19 +0200 |
commit | 1e0a52b03fe655d7073ef20703dbb2e7646f74d3 (patch) | |
tree | f1709c2e9565d78c791653e71e6a4b26b3138423 /Exception.h | |
parent | 277157b3e06b2deeacbdbc8bf6190de19f88169d (diff) |
add XY struct for 2d points and offsets
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; }; |