Fix detection of std::make_unique under MSVC
[folly.git] / folly / Memory.h
index 193d5062834931688ac4d502abcbf30734209f45..a64ca4c83db5e2ac732aacb4f87165ff1dcaa188 100644 (file)
@@ -37,8 +37,9 @@ namespace folly {
  * @author Xu Ning (xning@fb.com)
  */
 
-#if __cplusplus >= 201402L || \
-    defined __cpp_lib_make_unique && __cpp_lib_make_unique >= 201304L
+#if __cplusplus >= 201402L ||                                              \
+    (defined __cpp_lib_make_unique && __cpp_lib_make_unique >= 201304L) || \
+    (defined(_MSC_VER) && _MSC_VER >= 1900)
 
 /* using override */ using std::make_unique;