BAN: Formatter now uses perfect forwarding on its arguments

This commit is contained in:
Bananymous
2023-03-08 21:31:26 +02:00
parent 3ac99f1bd8
commit 371dfe8ef3
8 changed files with 175 additions and 155 deletions

View File

@@ -24,7 +24,7 @@ namespace BAN::Formatter
{
template<typename F>
void print_argument_impl(F putc, const Time& time, const ValueFormat&)
void print_argument(F putc, const Time& time, const ValueFormat&)
{
constexpr const char* week_days[] { "", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
constexpr const char* months[] { "", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };