From: Felix Dörre Date: Wed, 6 Apr 2016 11:06:42 +0000 (+0200) Subject: fix: make_unique is already defined in gcc 4.9 X-Git-Url: http://code.wpia.club/?a=commitdiff_plain;h=b4caa4218fef6ace700c9ddc285647eddd75fd28;p=cassiopeia.git fix: make_unique is already defined in gcc 4.9 --- diff --git a/src/util.h b/src/util.h index 976c148..a091340 100644 --- a/src/util.h +++ b/src/util.h @@ -15,7 +15,8 @@ std::pair parseYearInterval( std::time_t t, const std::string std::unique_ptr openLogfile( const std::string &name ); -#if __GNUC__ < 5 +#if __GNUC__ > 5 || (__GNUC__ == 4 && __GNUC_MINOR__ > 8) +#else namespace std{ template std::unique_ptr make_unique( Args&&... args ) {