switch back to boost::filesystem to avoid the requirement of c++17

This commit is contained in:
Chunting Gu
2020-09-07 19:01:31 +08:00
parent e7f88da2b2
commit 84476f75f7
31 changed files with 175 additions and 192 deletions
+3 -1
View File
@@ -4,6 +4,8 @@
#include <string>
#include <vector>
#include "boost/filesystem/path.hpp"
#include "webcc/request.h"
#include "webcc/response.h"
@@ -94,7 +96,7 @@ public:
// Use the file content as body.
// NOTE: Error::kFileError might be thrown.
ResponseBuilder& File(const std::filesystem::path& path,
ResponseBuilder& File(const boost::filesystem::path& path,
bool infer_media_type = true,
std::size_t chunk_size = 1024);