From 34fc123de389c46a1ff806109312ff40c4c70acd Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 17 Jun 2018 18:10:47 +0100 Subject: Create a typedef for the formatters char type --- libadhocutil/compileTimeFormatter.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libadhocutil/compileTimeFormatter.h b/libadhocutil/compileTimeFormatter.h index 4097ce5..f409b1c 100644 --- a/libadhocutil/compileTimeFormatter.h +++ b/libadhocutil/compileTimeFormatter.h @@ -99,6 +99,7 @@ namespace AdHoc { template friend struct StreamWriterBase; public: + typedef typename std::decay::type char_type; /** * Get a string containing the result of formatting. * @param pn the format arguments. @@ -107,7 +108,7 @@ namespace AdHoc { template static inline auto get(const Pn & ... pn) { - std::basic_stringstream::type> s; + std::basic_stringstream s; return write(s, pn...).str(); } -- cgit v1.2.3