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

dense_*: workaround for the max() ambiguity with MAX macro. #1034

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

pavelpokutnev
Copy link
Contributor

There is ambiguity between std::max() and MAX macro, which propagates via "Windows.h", on the Windows platform. In order not to bother the user with the NOMINMAX definitions, the bracketing method was chosen.

@skypjack skypjack self-assigned this Jul 5, 2023
@skypjack skypjack added enhancement accepted requests, sooner or later I'll do it build system requests or issues related to the build system labels Jul 5, 2023
@skypjack
Copy link
Owner

skypjack commented Jul 5, 2023

Please, do not update the single include file. It's generated automatically by a script. The PR looks good otherwise. Thanks. 👍

There is ambiguity between std::max() and MAX macro, which propagates via "Windows.h", on the Windows platform. In order not to bother the user with the NOMINMAX definitions, the bracketing method was chosen.
@pavelpokutnev
Copy link
Contributor Author

pavelpokutnev commented Jul 5, 2023

OK, just updated the PR.

@skypjack skypjack changed the base branch from master to wip July 6, 2023 12:41
@skypjack skypjack merged commit 1244dbe into skypjack:wip Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system requests or issues related to the build system enhancement accepted requests, sooner or later I'll do it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants