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

isolate the definition of NOMINMAX #848

Merged
merged 1 commit into from
Feb 16, 2023
Merged

Conversation

phlptp
Copy link
Collaborator

@phlptp phlptp commented Feb 16, 2023

isolate the definition of NOMINMAX further and skip undef if previously defined to not cause issue with other code that uses the definition.

This became an issue when using CLI11 in code that also included windows.h and made use of the NOMINMAX definition. There was a potential issue when CLI11 undefined it. This fix checks for the definition of NOMINMAX and leave it in place instead of undefining it.

…ly defined to not cause issue with other code that uses the definition.
@phlptp phlptp added the bug label Feb 16, 2023
@phlptp phlptp requested a review from henryiii February 16, 2023 01:14
@codecov
Copy link

codecov bot commented Feb 16, 2023

Codecov Report

Base: 99.45% // Head: 99.45% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (505aa2e) compared to base (7403921).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #848   +/-   ##
=======================================
  Coverage   99.45%   99.45%           
=======================================
  Files          18       18           
  Lines        4069     4071    +2     
=======================================
+ Hits         4047     4049    +2     
  Misses         22       22           
Impacted Files Coverage Δ
include/CLI/impl/Argv_inl.hpp 100.00% <ø> (ø)
include/CLI/impl/App_inl.hpp 99.31% <0.00%> (+<0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@henryiii henryiii merged commit 89601ee into CLIUtils:main Feb 16, 2023
@henryiii henryiii deleted the minmaxdef branch February 16, 2023 13:24
@github-actions github-actions bot added needs changelog Hasn't been added to the changelog yet needs README Needs to be mentioned in the README labels Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs changelog Hasn't been added to the changelog yet needs README Needs to be mentioned in the README
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants