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
#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>
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());
}
expectTempdirExists(d);
expectTempdirExists(d2);
- dir = std::make_unique<TemporaryDirectory>(std::move(d));
+ dir = folly::make_unique<TemporaryDirectory>(std::move(d));
dir2 = std::move(d2);
}