X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Futil.h;h=976c148ba32d9795f7bdfce4bef0de4455eae302;hb=2554cc985f2715ac9458c22e5f2970f38f8fa034;hp=90365bde7038e772ecc3e889dfb6173e04a556dc;hpb=709700dfbbeb5bf8aee1f5a1966f0192d783ae03;p=cassiopeia.git diff --git a/src/util.h b/src/util.h index 90365bd..976c148 100644 --- a/src/util.h +++ b/src/util.h @@ -15,9 +15,13 @@ std::pair parseYearInterval( std::time_t t, const std::string std::unique_ptr openLogfile( const std::string &name ); +#if __GNUC__ < 5 +namespace std{ template std::unique_ptr make_unique( Args&&... args ) { return std::unique_ptr( new T( std::forward(args)... )); } +} +#endif std::string timestamp();