From b4caa4218fef6ace700c9ddc285647eddd75fd28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Wed, 6 Apr 2016 13:06:42 +0200 Subject: [PATCH] fix: make_unique is already defined in gcc 4.9 --- src/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) { -- 2.47.3