Browse Source

Util: Remove template non-type parameter default arg, it cant be empty

master
Riyyi 2 years ago
parent
commit
94906028fc
  1. 4
      src/util/format/print.h

4
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<size_t N, typename... Parameters> \
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<size_t N, typename... Parameters> \
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); \

Loading…
Cancel
Save