From 3a7ad48395acfe69ed4df89adce7ddd52aee26c4 Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Fri, 9 Oct 2015 19:09:42 -0700 Subject: [PATCH] Fix Build: GCC 4.9 has std::make_unique but not __cplusplus >= 201402L Summary: [Folly] Fix Build: GCC 4.9 has `std::make_unique` but not `__cplusplus >= 201402L`. Reviewed By: @igorsugak Differential Revision: D2528584 fb-gh-sync-id: 9ad0567429698fb1320ad4066ee06add31acbd57 --- folly/Memory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/folly/Memory.h b/folly/Memory.h index eadc1c81..374f1e0e 100644 --- a/folly/Memory.h +++ b/folly/Memory.h @@ -37,7 +37,8 @@ namespace folly { * @author Xu Ning (xning@fb.com) */ -#if __cplusplus >= 201402L +#if __cplusplus >= 201402L || \ + defined __cpp_lib_make_unique && __cpp_lib_make_unique >= 201304L /* using override */ using std::make_unique; -- 2.34.1