From efe73caf1b635c5fc98e14cfd5b9e77971016fc4 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 23 Mar 2023 14:28:30 +0200 Subject: [PATCH] BAN: char* is now formatted as string and not pointer --- BAN/include/BAN/Formatter.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/BAN/include/BAN/Formatter.h b/BAN/include/BAN/Formatter.h index 3f7b7c4e..b0761d9d 100644 --- a/BAN/include/BAN/Formatter.h +++ b/BAN/include/BAN/Formatter.h @@ -243,10 +243,7 @@ namespace BAN::Formatter template void print_argument(F putc, char value, const ValueFormat&) { putc(value); } template void print_argument(F putc, bool value, const ValueFormat&) { print(putc, value ? "true" : "false"); } - template void print_argument(F putc, const char* value, const ValueFormat&) { print(putc, value);} + template void print_argument(F putc, const char* value, const ValueFormat&) { print(putc, value); } + template void print_argument(F putc, char* value, const ValueFormat&) { print(putc, value); } - //template void print_argument(F putc, signed char value, const ValueFormat& format) { detail::print_integer(putc, value, format); } - //template void print_argument(F putc, unsigned char value, const ValueFormat& format) { detail::print_integer(putc, value, format); } - //template void print_argument(F putc, T* value, const ValueFormat& format) { detail::print_pointer(putc, (void*)value, format); } - }