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

Use ghc::filesystem as a substitute for std::filesystem transparently? #180

Open
kencu opened this issue Mar 10, 2024 · 1 comment
Open
Labels
unsupported The compiler/os/environment is currently unsupported. wontfix This will not be worked on

Comments

@kencu
Copy link

kencu commented Mar 10, 2024

Is there some way that a build written to use std::filesystem:: calls might transparently substitute ghc::filesystem:: calls without patching the code?

@gulrak
Copy link
Owner

gulrak commented Mar 11, 2024

If the calling code is already build, in other words for a binary, that is impossible, as it is not link compatible, also formally the standard doesn't allow putting own stuff into the std namespace (besides template specializations like for e.g. std::swap), so while there might be hacks to get there (maybe using the required types inside of a std namespace) it is undefined behavior and thus not an option in the scope of this project.
Additionally the documented differences might come into play if the code depends on exact behavior.

@gulrak gulrak added wontfix This will not be worked on unsupported The compiler/os/environment is currently unsupported. labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unsupported The compiler/os/environment is currently unsupported. wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants