diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-06-17 14:07:40 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-06-17 14:07:40 +0100 |
commit | 6e7a718b1fe64a30d4618764be3578c168b8ea48 (patch) | |
tree | 798b674cc5380d7de6be9e26af56ca3029332808 | |
parent | Use template auto types throughout CTF (diff) | |
download | libadhocutil-6e7a718b1fe64a30d4618764be3578c168b8ea48.tar.bz2 libadhocutil-6e7a718b1fe64a30d4618764be3578c168b8ea48.tar.xz libadhocutil-6e7a718b1fe64a30d4618764be3578c168b8ea48.zip |
Simplify CTF invalid static_assert
-rw-r--r-- | libadhocutil/compileTimeFormatter.h | 5 |
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; }; /** |