aboutsummaryrefslogtreecommitdiff
path: root/c/err.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/err.h')
-rw-r--r--c/err.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/err.h b/c/err.h
index 73a5fc9..072e229 100644
--- a/c/err.h
+++ b/c/err.h
@@ -4,6 +4,7 @@
#include <exception>
#include <string>
+#include "util.h"
#include "win32.h"
enum ErrType : unsigned char
@@ -17,8 +18,7 @@ enum ErrType : unsigned char
struct Err
{
std::wstring what;
- Err(ErrType t, const wchar_t* fmt = L"%s.");
- inline Err(ErrType t, std::wstring fmt) : Err(t, fmt.c_str()) {}
+ Err(ErrType t, Buf<const wchar_t> msg = L"");
};
/* Return a wide string describing exception. */