mirror of
https://github.com/boostorg/filesystem.git
synced 2026-02-01 08:32:08 +00:00
Finish initial proposed wording section of relative_proposal.html. Drive-by tweaks to other stuff. Add example/directory_symlink_parent_resolution.cpp, include/boost/filesystem/string_file.hpp, and related infrastructure.
This commit is contained in:
@@ -1522,10 +1522,10 @@ namespace detail
|
||||
path relative(const path& p, const path& base, error_code* ec)
|
||||
{
|
||||
error_code tmp_ec;
|
||||
path wc_base = weakly_canonical(base, &tmp_ec);
|
||||
path wc_base(weakly_canonical(base, &tmp_ec));
|
||||
if (error(tmp_ec.value(), base, ec, "boost::filesystem::relative"))
|
||||
return path();
|
||||
path wc_p = weakly_canonical(p, &tmp_ec);
|
||||
path wc_p(weakly_canonical(p, &tmp_ec));
|
||||
if (error(tmp_ec.value(), base, ec, "boost::filesystem::relative"))
|
||||
return path();
|
||||
return wc_p.relative(wc_base);
|
||||
|
||||
Reference in New Issue
Block a user