Commit d65a097e authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 6

Fix detection of std::make_unique under MSVC

Summary: MSVC doesn't define `__cplusplus` as a high enough value to trigger this, so add an explicit check for MSVC instead.

Reviewed By: yfeldblum

Differential Revision: D3271647

fbshipit-source-id: a1e5a5a7eb75dce066dfc7fae8b2086880dc4c3d
parent 70cab78c
......@@ -38,7 +38,8 @@ namespace folly {
*/
#if __cplusplus >= 201402L || \
defined __cpp_lib_make_unique && __cpp_lib_make_unique >= 201304L
(defined __cpp_lib_make_unique && __cpp_lib_make_unique >= 201304L) || \
(defined(_MSC_VER) && _MSC_VER >= 1900)
/* using override */ using std::make_unique;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment