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
Conflicts with win32 header files on visual studio 2022 #1788
Comments
OptimumCpp
changed the title
Conflicts with wind32 header files on visual studio 2022
Conflicts with win32 header files on visual studio 2022
Jun 21, 2023
@OptimumCpp , you can add I also notice that sometimes, some libraries do |
As I mentioned earlier, I mamged to build code with reordering includes, but I will try this workaround as well. But I guess |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compilation success depends on the order of includes. Fails if windows headers go 1st:
The above code creates a lot of none-sence diagnostics.
but if the order is reversed, everything works fine:
I guess the problem lies in ranges preprocessing. But since I am using external VCPKG, I cannot tell whether it is a problem on Microsoft port, or the ranges library has an issue.
thank you for making life easier.
The text was updated successfully, but these errors were encountered: