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:
Beman
2015-08-12 17:26:03 -04:00
parent 074a5a157a
commit cb11081a7d
9 changed files with 340 additions and 34 deletions

View File

@@ -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);