From 1111a8b005308087101daf7facabfee1a473d420 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 4 Dec 2020 19:27:28 +0000 Subject: Better detection first param is a stream Also works around weirdness with ubsan --- libadhocutil/compileTimeFormatter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libadhocutil/compileTimeFormatter.h b/libadhocutil/compileTimeFormatter.h index 1d47ef7..b454863 100644 --- a/libadhocutil/compileTimeFormatter.h +++ b/libadhocutil/compileTimeFormatter.h @@ -207,7 +207,7 @@ namespace AdHoc { * @return the stream. */ template - inline typename std::enable_if<(bool)&stream::write, stream>::type & + inline typename std::enable_if, stream>, stream>::type & operator()(stream & s, const Pn &... pn) const { return write(s, pn...); -- cgit v1.2.3