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

fix : including windows.h header cause error #258

Merged
merged 1 commit into from Aug 5, 2019
Merged

fix : including windows.h header cause error #258

merged 1 commit into from Aug 5, 2019

Conversation

rinechran
Copy link
Contributor

Description

includeing windows.h header caause error
because includeing std:: max will call max in windows.h.

GitHub Issues

Noting

@claremacrae
Copy link
Contributor

Thanks very much for this fix, as we had the exact same problem adding doctest support to ApprovalTest.cpp.

The fix almost works - it just has a stray (

We suggest just changing std::max to std::max<double> - this worked for us in both VS2017 and cygwin's gcc.

claremacrae added a commit to approvals/ApprovalTests.cpp that referenced this pull request Jul 29, 2019
https: //github.com/doctest/doctest/pull/258
Co-Authored-By: Llewellyn Falco <isidore@users.noreply.github.com>
@rinechran
Copy link
Contributor Author

Thank you for fixing it!!!

@rinechran rinechran closed this Jul 30, 2019
@rinechran rinechran deleted the dev branch July 30, 2019 04:09
@claremacrae
Copy link
Contributor

@rinechran You're welcome, but we only fixed it in our copy of the doctest single header...

It remains to be fixed in the master repo, so please could you re-open this issue?

@rinechran rinechran restored the dev branch July 30, 2019 13:22
@rinechran rinechran reopened this Jul 30, 2019
@rinechran
Copy link
Contributor Author

@claremacrae sorry I first tried to pull request and I accidentally closed the issue.

@rinechran rinechran closed this Jul 30, 2019
@rinechran rinechran reopened this Jul 30, 2019
@onqtam onqtam merged commit 92e8615 into doctest:dev Aug 5, 2019
@onqtam
Copy link
Member

onqtam commented Aug 5, 2019

thanks!

onqtam added a commit that referenced this pull request Aug 5, 2019
onqtam added a commit that referenced this pull request Aug 5, 2019
@rinechran rinechran deleted the dev branch August 6, 2019 00:40
onqtam pushed a commit that referenced this pull request Aug 11, 2019
@onqtam onqtam changed the title fix : includeing windows.h header caause error fix : including windows.h header cause error Nov 5, 2021
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.

None yet

3 participants