From 1f4f1754c167b85071454438537425752a5dc2bf Mon Sep 17 00:00:00 2001 From: Jon Maltiel Swenson Date: Tue, 24 May 2016 15:41:25 -0700 Subject: [PATCH] std::make_unique -> folly::make_unique Summary: We should use folly::make_unique instead of std::make_unique in order to support compilers without support for C++14. Reviewed By: pavlo-fb Differential Revision: D3343288 fbshipit-source-id: 9150af752e57988962a7580851ffa32086c669d7 --- folly/experimental/TestUtil.cpp | 3 ++- folly/experimental/test/TestUtilTest.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/folly/experimental/TestUtil.cpp b/folly/experimental/TestUtil.cpp index 362ed158..7087c568 100644 --- a/folly/experimental/TestUtil.cpp +++ b/folly/experimental/TestUtil.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -100,7 +101,7 @@ TemporaryDirectory::TemporaryDirectory( fs::path dir, Scope scope) : scope_(scope), - path_(std::make_unique( + path_(folly::make_unique( generateUniquePath(std::move(dir), namePrefix))) { fs::create_directory(path()); } diff --git a/folly/experimental/test/TestUtilTest.cpp b/folly/experimental/test/TestUtilTest.cpp index d8480b1d..a84e017c 100644 --- a/folly/experimental/test/TestUtilTest.cpp +++ b/folly/experimental/test/TestUtilTest.cpp @@ -117,7 +117,7 @@ TEST(TemporaryDirectory, SafelyMove) { expectTempdirExists(d); expectTempdirExists(d2); - dir = std::make_unique(std::move(d)); + dir = folly::make_unique(std::move(d)); dir2 = std::move(d2); } -- 2.34.1