replace boost filesystem with std filesystem; upgrade gtest and find it using cmake.

This commit is contained in:
Chunting Gu
2020-02-15 12:04:51 +08:00
parent 7e3da65e73
commit 7e7ab1c1e8
72 changed files with 233 additions and 31551 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ RequestPtr RequestBuilder::operator()() {
return request;
}
RequestBuilder& RequestBuilder::File(const webcc::Path& path,
RequestBuilder& RequestBuilder::File(const std::filesystem::path& path,
bool infer_media_type,
std::size_t chunk_size) {
body_.reset(new FileBody{ path, chunk_size });
@@ -64,7 +64,7 @@ RequestBuilder& RequestBuilder::File(const webcc::Path& path,
}
RequestBuilder& RequestBuilder::FormFile(const std::string& name,
const webcc::Path& path,
const std::filesystem::path& path,
const std::string& media_type) {
assert(!name.empty());
return Form(FormPart::NewFile(name, path, media_type));