Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: no match for 'operator!=' comparing json_pointer and const char */string_t #3654

Closed
2 tasks done
falbrechtskirchinger opened this issue Aug 2, 2022 · 0 comments · Fixed by #3664
Closed
2 tasks done
Labels
confirmed kind: bug solution: proposed fix a fix for the issue has been proposed and waits for confirmation

Comments

@falbrechtskirchinger
Copy link
Contributor

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

@nlohmann nlohmann added the solution: proposed fix a fix for the issue has been proposed and waits for confirmation label Aug 5, 2022
@nlohmann nlohmann added this to the Release 3.11.2 milestone Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed kind: bug solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants