X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;ds=sidebyside;f=src%2Futil.h;h=529820adab8d0106047e8a17acb98ad886a31c05;hb=8c36452a1422eea1631cff4d90a3b801ed05cd77;hp=90365bde7038e772ecc3e889dfb6173e04a556dc;hpb=709700dfbbeb5bf8aee1f5a1966f0192d783ae03;p=cassiopeia.git diff --git a/src/util.h b/src/util.h old mode 100644 new mode 100755 index 90365bd..529820a --- a/src/util.h +++ b/src/util.h @@ -15,9 +15,14 @@ std::pair parseYearInterval( std::time_t t, const std::string 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)... )); } +} +#endif std::string timestamp();