summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-05-10 11:08:44 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2020-05-10 11:08:44 +0100
commit6bf3266a137aa09e251a87cc3f309eee66747f10 (patch)
treec98cc039ba7fd85638055f7367875608e7b8bc98
parentLTO through boost build (diff)
downloadlibadhocutil-6bf3266a137aa09e251a87cc3f309eee66747f10.tar.bz2
libadhocutil-6bf3266a137aa09e251a87cc3f309eee66747f10.tar.xz
libadhocutil-6bf3266a137aa09e251a87cc3f309eee66747f10.zip
Add missing header, add proper namespacing in macro
-rw-r--r--libadhocutil/compileTimeFormatter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libadhocutil/compileTimeFormatter.h b/libadhocutil/compileTimeFormatter.h
index d13492a..5b39167 100644
--- a/libadhocutil/compileTimeFormatter.h
+++ b/libadhocutil/compileTimeFormatter.h
@@ -2,6 +2,7 @@
#define ADHOCUTIL_COMPILE_TIME_FORMATTER_H
#include <sstream>
+#include <iostream>
#include <cstring>
#include <optional>
#include <array>
@@ -254,7 +255,7 @@ namespace AdHoc {
typename std::decay<decltype(S[0])>::type, L>(S, L), L> { };
#define AdHocFormatter(name, str) \
- using name = LiteralFormatter<str>
+ using name = ::AdHoc::LiteralFormatter<str>
template<const support::basic_fixed_string Str, typename ... Pn>
inline auto scprintf(const Pn & ... pn)