Solving problem with g++8 and new boost libs:
osrm-backend/src/storage/io_config.cpp:18:89: error: call of overloaded ‘is_regular_file(<brace-enclosed initializer list>)’ is ambiguous if (!boost::filesystem::is_regular_file({base_path.string() + fileName.string()})) ^ In file included from /usr/local/include/boost/filesystem.hpp:17, from /home/premy/packages/osrm-backend/include/storage/io_config.hpp:8, from /home/premy/packages/osrm-backend/src/storage/io_config.cpp:1: /usr/local/include/boost/filesystem/operations.hpp:473:8: note: candidate: ‘bool boost::filesystem::is_regular_file(const boost::filesystem::path&)’ bool is_regular_file(const path& p) {return is_regular_file(detail::status(p));} ^~~~~~~~~~~~~~~ In file included from /usr/local/include/boost/filesystem.hpp:17,
This commit is contained in:
parent
e86d93760f
commit
38700e207e
@ -12,10 +12,12 @@ namespace storage
|
||||
{
|
||||
bool IOConfig::IsValid() const
|
||||
{
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
bool success = true;
|
||||
for (auto &fileName : required_input_files)
|
||||
{
|
||||
if (!boost::filesystem::is_regular_file({base_path.string() + fileName.string()}))
|
||||
if (!fs::is_regular_file(fs::status(base_path.string() + fileName.string())))
|
||||
{
|
||||
util::Log(logWARNING) << "Missing/Broken File: " << base_path.string()
|
||||
<< fileName.string();
|
||||
@ -24,5 +26,5 @@ bool IOConfig::IsValid() const
|
||||
}
|
||||
return success;
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace storage
|
||||
} // namespace osrm
|
||||
|
Loading…
Reference in New Issue
Block a user