X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Flog%2Fformat.hpp;h=5cfd36936b73800a324296b54607824fb33d8c5e;hb=9c88683457862a86656172dfba127717bf41b86a;hp=827f7ea2a26d9bdcf327979e3a04ecd4b717673b;hpb=3c27aae8d1bfbf441c25b273d328d0859022ed60;p=cassiopeia.git diff --git a/src/log/format.hpp b/src/log/format.hpp index 827f7ea..5cfd369 100644 --- a/src/log/format.hpp +++ b/src/log/format.hpp @@ -93,19 +93,19 @@ namespace logger { template formated_string fmt( const std::string& str, const Args& ... args ) { auto format = format_data{}; - std::ignore = std::initializer_list{( format.set( args ), 0 )...}; + std::ignore = std::initializer_list {( format.set( args ), 0 )...}; return format( str ); } template formated_integer fmt( const Integer i, const Args& ... args ) { auto format = format_data{}; - std::ignore = std::initializer_list{( format.set( args ), 0 )...}; + std::ignore = std::initializer_list {( format.set( args ), 0 )...}; return format( i ); } inline namespace literals { - format_data operator"" _fmt( const char*, std::size_t ); + format_data operator"" _fmt( const char *, std::size_t ); } } // namespace format @@ -116,10 +116,10 @@ namespace logger { inline std::string to_string( const format::formated_integer& arg ) { std::ostringstream stream; stream << - std::setbase( arg.base ) << - std::setw( arg.width ) << - std::setfill( arg.fill ) << - arg.value; + std::setbase( arg.base ) << + std::setw( arg.width ) << + std::setfill( arg.fill ) << + arg.value; return stream.str(); }