Last active
January 9, 2023 07:20
-
-
Save hizkifw/753fe65170c45b63f3cf7ccea59dcc81 to your computer and use it in GitHub Desktop.
Patch to fix https://github.com/nlohmann/json/issues/590#issuecomment-305988306 for v2.1.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- json.hpp 2023-01-09 15:13:04.871631532 +0800 | |
+++ json2.hpp 2023-01-09 15:13:24.414084972 +0800 | |
@@ -6054,7 +6054,7 @@ | |
{ | |
case value_t::array: | |
{ | |
- return *lhs.m_value.array < *rhs.m_value.array; | |
+ return (*lhs.m_value.array) < (*rhs.m_value.array); | |
} | |
case value_t::object: | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment