From 6e7a718b1fe64a30d4618764be3578c168b8ea48 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 17 Jun 2018 14:07:40 +0100 Subject: Simplify CTF invalid static_assert --- libadhocutil/compileTimeFormatter.h | 5 ++--- 1 file 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 struct StreamWriter { template - 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; }; /** -- cgit v1.2.3