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

Define NOMINMAX when including Windows.h #81

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

DolphyWind
Copy link
Contributor

@DolphyWind DolphyWind commented Feb 19, 2024

Description

Hi, really nice library. I've recently got into an issue while using this library with std::numeric_limits<T>::min() and std::numeric_limits<T>::max() and it turned out those pesky evil min and max macros from Windows.h were the issue. This is a small pr that fixes it.

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have tested this code
  • I have added sufficient documentation in the code

Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d848a2f) 100.00% compared to head (80d6be0) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #81   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           57        57           
  Branches         3         3           
=========================================
  Hits            57        57           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martin-olivier martin-olivier self-requested a review February 20, 2024 13:25
@martin-olivier martin-olivier added the bug Something isn't working label Feb 20, 2024
@martin-olivier martin-olivier merged commit c5b46c6 into martin-olivier:main Feb 26, 2024
18 checks passed
@martin-olivier
Copy link
Owner

Hello @DolphyWind,

Thank you for your pull request.

BR

martin-olivier added a commit that referenced this pull request Jan 3, 2025
This reverts commit c5b46c6.

This is done to be able to merge dev branch into main.
The commit will be restored on top of the dev branch.

Signed-off-by: Martin Olivier <[email protected]>
martin-olivier pushed a commit that referenced this pull request Jan 4, 2025
* Define NOMINMAX when including Windows.h
* Fix some formatting

(cherry picked from commit c5b46c6)
Signed-off-by: Martin Olivier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants