Skip to content

Workaround build error with clang/libc++ in agi::fs::path #366

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

driver1998
Copy link

@driver1998 driver1998 commented Apr 19, 2025

The std::basic_fstream implementation in libc++ does not allow constructing with a derived class of std::filesystem::path like agi::fs::path. (There is a is_same_v constraint.)

Workaround by getting its underly string manually. Fixes building with LLVM based MinGW environments, including Windows on ARM.

This kind of defeats the purpose of agi::fs::path, therefore currently sent as draft.

The `std::basic_fstream` implementation in libc++ does not allow constructing with a derived class of `std::filesystem::path` like `agi::fs::path`. (There is a `is_same_v` constraint.)

Workaround by getting its underly string manually. Fixes building with LLVM based MinGW environments, including Windows on ARM.

This kind of defeat the purpose of `agi::fs::path`, therefore currently sent as draft.
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

Successfully merging this pull request may close these issues.

1 participant