Commit 1f4f1754 authored by Jon Maltiel Swenson's avatar Jon Maltiel Swenson Committed by Facebook Github Bot 9

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
parent 42c850c0
......@@ -26,6 +26,7 @@
#include <folly/Exception.h>
#include <folly/File.h>
#include <folly/FileUtil.h>
#include <folly/Memory.h>
#include <folly/String.h>
#include <folly/portability/Environment.h>
......@@ -100,7 +101,7 @@ TemporaryDirectory::TemporaryDirectory(
fs::path dir,
Scope scope)
: scope_(scope),
path_(std::make_unique<fs::path>(
path_(folly::make_unique<fs::path>(
generateUniquePath(std::move(dir), namePrefix))) {
fs::create_directory(path());
}
......
......@@ -117,7 +117,7 @@ TEST(TemporaryDirectory, SafelyMove) {
expectTempdirExists(d);
expectTempdirExists(d2);
dir = std::make_unique<TemporaryDirectory>(std::move(d));
dir = folly::make_unique<TemporaryDirectory>(std::move(d));
dir2 = std::move(d2);
}
......
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