summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-06-17 14:07:40 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-06-17 14:07:40 +0100
commit6e7a718b1fe64a30d4618764be3578c168b8ea48 (patch)
tree798b674cc5380d7de6be9e26af56ca3029332808
parentUse template auto types throughout CTF (diff)
downloadlibadhocutil-6e7a718b1fe64a30d4618764be3578c168b8ea48.tar.bz2
libadhocutil-6e7a718b1fe64a30d4618764be3578c168b8ea48.tar.xz
libadhocutil-6e7a718b1fe64a30d4618764be3578c168b8ea48.zip
Simplify CTF invalid static_assert
-rw-r--r--libadhocutil/compileTimeFormatter.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libadhocutil/compileTimeFormatter.h b/libadhocutil/compileTimeFormatter.h
index 82cfa79..d191ffc 100644
--- a/libadhocutil/compileTimeFormatter.h
+++ b/libadhocutil/compileTimeFormatter.h
@@ -83,11 +83,10 @@ namespace AdHoc {
template<const auto & S, auto L, auto pos, typename stream, auto ... sn>
struct StreamWriter<S, L, pos, stream, '%', sn...> {
template<typename ... Pn>
- static void write(stream &, const Pn & ...)
+ static void write(stream & s, const Pn & ...)
{
- static_assert(!&err, "invalid format string/arguments");
+ static_assert(!&s, "invalid format string/arguments");
}
- static int err;
};
/**