X-Git-Url: https://code.wpia.club/?p=cassiopeia.git;a=blobdiff_plain;f=src%2Flog%2Fformat.hpp;fp=src%2Flog%2Fformat.hpp;h=5cfd36936b73800a324296b54607824fb33d8c5e;hp=827f7ea2a26d9bdcf327979e3a04ecd4b717673b;hb=da9f337a893bd317460118f89efa83a3427f797f;hpb=23987db96db7962a6ee58d1aeda2bd87780ca579 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(); }