X-Git-Url: https://code.wpia.club/?p=cassiopeia.git;a=blobdiff_plain;f=src%2Futil.h;fp=src%2Futil.h;h=766f7ca3f117aecc447044e8e0d32a5745f5e746;hp=529820adab8d0106047e8a17acb98ad886a31c05;hb=da9f337a893bd317460118f89efa83a3427f797f;hpb=23987db96db7962a6ee58d1aeda2bd87780ca579 diff --git a/src/util.h b/src/util.h index 529820a..766f7ca 100644 --- a/src/util.h +++ b/src/util.h @@ -13,15 +13,15 @@ std::pair parseDate( const std::string& date ); std::pair parseMonthInterval( std::time_t t, const std::string& date ); std::pair parseYearInterval( std::time_t t, const std::string& date ); -std::unique_ptr openLogfile( const std::string &name ); +std::unique_ptr openLogfile( const std::string& name ); #if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ > 8) #else -namespace std{ -template -std::unique_ptr make_unique( Args&&... args ) { - return std::unique_ptr( new T( std::forward(args)... )); -} +namespace std { + template + std::unique_ptr make_unique( Args&& ... args ) { + return std::unique_ptr( new T( std::forward( args )... ) ); + } } #endif