You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parse and accept a string, if the string is pure number string like "123"
accept will return true(it looks a error result)
parse will not throw a exception(I think it is wrong, It should throw a expection)
after parse we use this object to emplace it throw a expection json.exception.type_error.311
The result output is : it is a json
is_discarded: false
j.dump(): 123456
emplace error reason: [json.exception.type_error.311] cannot use emplace() with number
nlohmann::json version : 3.10.2
gcc version:
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
The text was updated successfully, but these errors were encountered:
When parse and accept a string, if the string is pure number string like "123"
accept will return true(it looks a error result)
parse will not throw a exception(I think it is wrong, It should throw a expection)
after parse we use this object to emplace it throw a expection json.exception.type_error.311
Example code:
The result output is :
it is a json
is_discarded: false
j.dump(): 123456
emplace error reason: [json.exception.type_error.311] cannot use emplace() with number
nlohmann::json version : 3.10.2
gcc version:
Apple clang version 13.0.0 (clang-1300.0.29.3)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
The text was updated successfully, but these errors were encountered: