projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3fe16e
)
Fix Build: GCC 4.9 has std::make_unique but not __cplusplus >= 201402L
author
Yedidya Feldblum
<yfeldblum@fb.com>
Sat, 10 Oct 2015 02:09:42 +0000
(19:09 -0700)
committer
facebook-github-bot-1
<folly-bot@fb.com>
Sat, 10 Oct 2015 02:20:19 +0000
(19:20 -0700)
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
patch
|
blob
|
history
diff --git
a/folly/Memory.h
b/folly/Memory.h
index eadc1c816292db2e5802f46cebff3a78eaa807c7..374f1e0ec377a532c4b3c699c2c476567260f95e 100644
(file)
--- 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;