path relative(const path& p, error_code& ec);
path relative(const path& p, const path& base = current_path()); path relative(const path& p, const path& base, error_code& ec);
weakly_canonical(p).lexically_relative(weakly_canonical(base));
weakly_canonical(p, ec).lexically_relative(weakly_canonical(base, ec));