Skip to content

Conversation

nukeulater
Copy link
Contributor

NOMINMAX macro doesn't work everytime for some reason

@gabime
Copy link
Owner

gabime commented Feb 5, 2021

What do you mean doesnt work?

@nukeulater
Copy link
Contributor Author

nukeulater commented Feb 6, 2021

What do you mean doesnt work?

Header only compile was causing issues with that, even with NOMINMAX defined

@gabime
Copy link
Owner

gabime commented Feb 6, 2021

so why does removing the define fix this?

@nukeulater
Copy link
Contributor Author

so why does removing the define fix this?

It doesn't, the part where I added the parenthesis around std::numeric_limits::max does, and removed the define because it's unnecessary

@gabime
Copy link
Owner

gabime commented Feb 6, 2021

so lets put it back in, otherwise it might break backward compitability for code that relies on it to be already defined.

…SUPPORT

NOMINMAX macro doesn't work everytime for some reason
@nukeulater
Copy link
Contributor Author

if there is not any other code using min/max not sure what backward compatibility it could break, but i re-added it

@gabime gabime merged commit ff6e3c9 into gabime:v1.x Feb 6, 2021
@gabime
Copy link
Owner

gabime commented Feb 6, 2021

Thanks @nukeulater. Merged.

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