-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
std::filesystem::directory_iterator code compiles OK with <filesytem> fails with std module, 17.5 Preview 2 #3330
Comments
If I change the code Line 82 in 8ddf4da
to _BITMASK_OPS(_EXPORT_STD, __std_fs_file_attr) then your example works for me. But I am unsure should we add |
Beyond my pay grade! What got me was why it is "operator &" in what I assume is an assignment of the dereferenced directory iterator. operator & to me would normally be a boolean and of the bits in the attribute flags. Anyway I'll leave it to the experts. My only other comment is that it's a bit annoying that the error message doesn't tell me what line in my code is causing the issue. The line number in my code in the the error is simply the last one in the main function not the one causing the error. |
In 17.5 Preview 3, I do have the same issue with
With the same library workaround as with
|
The following code compiles OK when using the
<filesystem>
header but fails when usingimport std;
. This is with 17.5 Preview 2. The only changes to a default C++ project in VS was/std:c++latest
and adding the std.ixx fileThe error message when using the std module is
Which seemed really odd to me.
The text was updated successfully, but these errors were encountered: