📝 fix for #639

Removed deprecated documentation of the comparison operator.
parent e99b783d
...@@ -846,6 +846,7 @@ I deeply appreciate the help of the following people. ...@@ -846,6 +846,7 @@ I deeply appreciate the help of the following people.
- [Vincent Thiery](https://github.com/vthiery) maintains a package for the Conan package manager. - [Vincent Thiery](https://github.com/vthiery) maintains a package for the Conan package manager.
- [Steffen](https://github.com/koemeet) fixed a potential issue with MSVC and `std::min`. - [Steffen](https://github.com/koemeet) fixed a potential issue with MSVC and `std::min`.
- [Mike Tzou](https://github.com/Chocobo1) fixed some typos. - [Mike Tzou](https://github.com/Chocobo1) fixed some typos.
- [amrcode](https://github.com/amrcode) noted a missleading documentation about comparison of floats.
Thanks a lot for helping out! Please [let me know](mailto:mail@nlohmann.me) if I forgot someone. Thanks a lot for helping out! Please [let me know](mailto:mail@nlohmann.me) if I forgot someone.
......
...@@ -6273,10 +6273,7 @@ class basic_json ...@@ -6273,10 +6273,7 @@ class basic_json
their stored values are the same according to their respective their stored values are the same according to their respective
`operator==`. `operator==`.
- Integer and floating-point numbers are automatically converted before - Integer and floating-point numbers are automatically converted before
comparison. Floating-point numbers are compared indirectly: two comparison. Note than two NaN values are always treated as unequal.
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.
- Two JSON null values are equal. - Two JSON null values are equal.
@note NaN values never compare equal to themselves or to other NaN values. @note NaN values never compare equal to themselves or to other NaN values.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment