Closed
Description
Description
Comparing a json_pointer
and const char *
/const char[N]
/json_pointer::string_t
fails to compile.
v3.10.5 compiles.
Reproduction steps
See code example.
Expected vs. actual results
n/a
Minimal code example
#include <https://raw.githubusercontent.com/nlohmann/json/develop/single_include/nlohmann/json.hpp>
using nlohmann::json;
#include <iostream>
int main() {
std::cout << std::boolalpha
<< (json::json_pointer{"/foo"} != "")
<< std::endl;
}
Error messages
No response
Compiler and operating system
any
Library version
develop (3.11.0, 3.11.1)
Validation
- The bug also occurs if the latest version from the
develop
branch is used. - I can successfully compile and run the unit tests.