Skip to content

Commit

Permalink
📝 fix for #639
Browse files Browse the repository at this point in the history
Removed deprecated documentation of the comparison operator.
  • Loading branch information
nlohmann committed Jul 7, 2017
1 parent e99b783 commit 32065c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@ I deeply appreciate the help of the following people.
- [Vincent Thiery](https:/vthiery) maintains a package for the Conan package manager.
- [Steffen](https:/koemeet) fixed a potential issue with MSVC and `std::min`.
- [Mike Tzou](https:/Chocobo1) fixed some typos.
- [amrcode](https:/amrcode) noted a missleading documentation about comparison of floats.


Thanks a lot for helping out! Please [let me know](mailto:[email protected]) if I forgot someone.
Expand Down
5 changes: 1 addition & 4 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6273,10 +6273,7 @@ class basic_json
their stored values are the same according to their respective
`operator==`.
- Integer and floating-point numbers are automatically converted before
comparison. Floating-point numbers are compared indirectly: two
floating-point numbers `f1` and `f2` are considered equal if neither
`f1 > f2` nor `f2 > f1` holds. Note than two NaN values are always
treated as unequal.
comparison. Note than two NaN values are always treated as unequal.
- Two JSON null values are equal.
@note NaN values never compare equal to themselves or to other NaN values.
Expand Down

0 comments on commit 32065c8

Please sign in to comment.