Replace boost::filesystem with std (#6432)
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
#include "util/version.hpp"
|
||||
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/program_options.hpp>
|
||||
#include <boost/range/adaptor/transformed.hpp>
|
||||
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <regex>
|
||||
@@ -119,7 +119,7 @@ return_code parseArguments(int argc,
|
||||
boost::program_options::options_description hidden_options("Hidden options");
|
||||
hidden_options.add_options()(
|
||||
"input,i",
|
||||
boost::program_options::value<boost::filesystem::path>(&config.base_path),
|
||||
boost::program_options::value<std::filesystem::path>(&config.base_path),
|
||||
"Input base file path");
|
||||
|
||||
// positional option
|
||||
@@ -132,7 +132,7 @@ return_code parseArguments(int argc,
|
||||
|
||||
const auto *executable = argv[0];
|
||||
boost::program_options::options_description visible_options(
|
||||
boost::filesystem::path(executable).filename().string() + " <input.osrm> [options]");
|
||||
std::filesystem::path(executable).filename().string() + " <input.osrm> [options]");
|
||||
visible_options.add(generic_options).add(config_options);
|
||||
|
||||
// parse command line options
|
||||
@@ -216,9 +216,9 @@ try
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
auto check_file = [](const boost::filesystem::path &path)
|
||||
auto check_file = [](const std::filesystem::path &path)
|
||||
{
|
||||
if (!boost::filesystem::is_regular_file(path))
|
||||
if (!std::filesystem::is_regular_file(path))
|
||||
{
|
||||
util::Log(logERROR) << "Input file " << path << " not found!";
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user