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

resolve std::numeric_limits::max() windef.h:max(a, b) conflict in atArray implementations #158

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

0x280
Copy link
Contributor

@0x280 0x280 commented Jan 30, 2024

There is a conflict in the atArray function implementations between std::numeric_limits::max() and the macro max(a, b) defined in windef.h (if NOMINMAX isnt present, see microsoft/cppwinrt#479). By wrapping std::numeric_limits::max in parenthesis before calling it, the compiler explicitly uses the intended std::numeric_limits::max() function. In the c++/winrt issue it appears like this has been fixed, but even with a fully updated v143 toolset this issue persists.

@Yimura Yimura merged commit 178ab8e into Yimura:master Jan 30, 2024
2 checks passed
Mr-X-GTA pushed a commit to Mr-X-GTA/GTAV-Classes-1 that referenced this pull request Sep 24, 2024
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.

2 participants