Skip to content

Conversation

@inguin
Copy link
Contributor

@inguin inguin commented Nov 2, 2015

These two commits fix a number of warnings when compiling with the gcc options -Wundef and -Wfloat-equal.

The first commit is pretty straight-forward: Use #ifdef instead of #if when checking _MSC_VER, and set a default value for options like FMT_USE_NOEXCEPT when undefined.

The second commit replaces a (value != value) expression used to test whether a floating point number is NaN with an explicit call to isnan(). I added a set of compatibility functions similar to those for isinf(), but I have not tested them with any compiler other than gcc.

vitaut added a commit that referenced this pull request Nov 2, 2015
@vitaut vitaut merged commit de3cea7 into fmtlib:master Nov 2, 2015
@vitaut
Copy link
Contributor

vitaut commented Nov 2, 2015

Merged with a minor change in 8af9bf1 to avoid defining system macro _SECURE_SCL. Thanks!

@vitaut
Copy link
Contributor

vitaut commented Aug 11, 2019

@inguin, could you please review the updated CONTIBUTING document, particularly the part about licensing, and let me know if you agree with it being applied to your contributions to {fmt}? The library is likely to be relicensed (#1073) so I'm collecting approval from all earlier contributors. Thanks!

@inguin
Copy link
Contributor Author

inguin commented Aug 11, 2019

@vitaut: Fine for me, use my contribution under any license you like.
BTW, I'm very excited about std::format() being accepted for C++20. Thanks for all your work!

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