From 57952505e522be868a5a8270d8670163b55ebade Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Tue, 5 May 2020 22:52:14 +0100 Subject: Update fmt to 6.2.0 (#4718) * Update fmt to 6.2.0 --- src/CommandOutput.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/CommandOutput.h') diff --git a/src/CommandOutput.h b/src/CommandOutput.h index 6cba4de7f..cb40b05a6 100644 --- a/src/CommandOutput.h +++ b/src/CommandOutput.h @@ -17,9 +17,14 @@ class cCommandOutputCallback public: virtual ~cCommandOutputCallback() {} // Force a virtual destructor in subclasses + void vOut(const char * a_Fmt, fmt::printf_args); + /** Syntax sugar function, calls Out() with Printf()-ed parameters; appends a newline" */ - void Out(const char * a_Fmt, fmt::ArgList); - FMT_VARIADIC(void, Out, const char *) + template + void Out(const char * a_Fmt, const Args & ... a_Args) + { + vOut(a_Fmt, fmt::make_printf_args(a_Args...)); + } /** Called when the command wants to output anything; may be called multiple times */ virtual void Out(const AString & a_Text) = 0; -- cgit v1.2.3