Comparison floating points causes warning #2909
Labels
confirmed
kind: bug
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
Treating warnings as errors causes
Werror=float-equal
on gcc 9.3 on NDEBUGWhat is the issue you have?
I use JSON as an in-source library and compile the project with Werror and gcc 9.3.
json.hpp:14830:84
is then pointed out to be "unsafe".The intention of that line is clear to me, but it should be considered to find a warning-free solution.
Please describe the steps to reproduce the issue.
Can you provide a small but working code example?
What is the expected behavior?
And what is the actual behavior instead?
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branch commit: eb488bbIf you experience a compilation error: can you compile and run the unit tests?
The text was updated successfully, but these errors were encountered: