From 94906028fc176b5d5c14223fe9a63102ffa2f795 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 27 Jul 2022 01:06:29 +0200 Subject: [PATCH] Util: Remove template non-type parameter default arg, it cant be empty --- src/util/format/print.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/format/print.h b/src/util/format/print.h index bae06d4..a4372da 100644 --- a/src/util/format/print.h +++ b/src/util/format/print.h @@ -26,13 +26,13 @@ void prettyVariadicFormat(FILE* file, Type type, bool bold, std::string_view for #define FORMAT_FUNCTION(name, type, bold) \ template \ - void name(const char(&format)[N] = "", const Parameters&... parameters) \ + void name(const char(&format)[N], const Parameters&... parameters) \ { \ VariadicParameters variadicParameters { parameters... }; \ prettyVariadicFormat(stdout, Type::type, bold, { format, N - 1 }, variadicParameters); \ } \ template \ - void name(FILE* file, const char(&format)[N] = "", const Parameters&... parameters) \ + void name(FILE* file, const char(&format)[N], const Parameters&... parameters) \ { \ VariadicParameters variadicParameters { parameters... }; \ prettyVariadicFormat(file, Type::type, bold, { format, N - 1 }, variadicParameters); \