Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4: path::compare should separately compare root-name, root-directory and relative-path #315

Open
Lastique opened this issue Jun 29, 2024 · 0 comments

Comments

@Lastique
Copy link
Member

Currently, v3 and v4 perform path comparison element-wise, using iteration over path elements with iterators. This means that if one of the paths is missing root-name or root-directory, the algorithm may compare root-name or root-directory against a filename in the other path.

v4 should implement std::filesystem algorithm [fs.path.compare], which separately compares root-names, root-directories and then the elements of relative_path().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant