diff --git a/src/filesystem.cc b/src/filesystem.cc index ae41b82..13d7354 100644 --- a/src/filesystem.cc +++ b/src/filesystem.cc @@ -202,11 +202,7 @@ boost::filesystem::path filesystem::get_canonical_path(const boost::filesystem:: boost::filesystem::path filesystem::get_relative_path(const boost::filesystem::path &path, const boost::filesystem::path &base) noexcept { boost::filesystem::path relative_path; boost::system::error_code ec; -#if BOOST_VERSION>=106000 - relative_path=boost::filesystem::relative(path, base, ec); - if(ec) - return boost::filesystem::path(); -#else + if(std::distance(path.begin(), path.end())