From: Jon Maltiel Swenson Date: Tue, 24 May 2016 22:41:25 +0000 (-0700) Subject: std::make_unique -> folly::make_unique X-Git-Tag: 2016.07.26~205 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1f4f1754c167b85071454438537425752a5dc2bf;p=folly.git 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 --- 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); }