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

Fortify uses of std::min/max against Windows #37

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

MiKom
Copy link
Contributor

@MiKom MiKom commented Oct 29, 2024

In public headers it's better to add parentheses around std::min/max because on Windows, these can be treated as the (in)famous min/max macros from Windows SDK (minwindef.h) if the user doesn't define NOMINMAX.

In public headers it's better to add parentheses around std::min/max
because on Windows, these can be treated as the (in)famous min/max
macros from Windows SDK (minwindef.h) if the user doesn't define
NOMINMAX.
@MiKom MiKom requested a review from iamsergio October 30, 2024 13:38
@iamsergio iamsergio merged commit 4b715ce into KDABLabs:master Nov 1, 2024
7 checks passed
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