warning on at(nlohmann::json_pointer) #4103
Labels
kind: bug
state: stale
the issue has not been updated in a while and will be closed automatically soon unless it is updated
Description
warning on at(nlohmann::json_pointer)
warning: ‘nlohmann::json_abi_v3_11_2::json_pointer::operator nlohmann::json_abi_v3_11_2::json_pointer::string_t() const [with RefStringType = std::basic_string; nlohmann::json_abi_v3_11_2::json_pointer::string_t = std::basic_string]’ is deprecated (declared at /home/tty2099/Workspace/AutoTradingSystem/third_party/nlohmann_json/include/nlohmann/detail/json_pointer.hpp:81): Since 3.11.0; use to_string() [-Wdeprecated-declarations]
It's warning when compiling the code, but It can find the node correctly. When I call with at(nlohmann::json_pointer::to_string()), it cannot find the json node.
I cannot understand the purpose of the find function with json_pointer parameter, it will not find the node when I call it with the json_pointer paramter or with the json_pointer::to_string() paramter.
Reproduction steps
Expected vs. actual results
I think at(nlohmann::json_pointerstd::string) and at(nlohmann::json_pointerstd::string::to_string()) calls return the same result, nlohmann::json should find the node according the path that nlohmann::json_pointerstd::string supplied.
I think the find function should also be work in this way.
Minimal code example
No response
Error messages
No response
Compiler and operating system
CentOS7
Library version
3.11.0
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: