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

Add json_pointer/string_t equality comparison operators #3664

Conversation

falbrechtskirchinger
Copy link
Contributor

@falbrechtskirchinger falbrechtskirchinger commented Aug 3, 2022

  • Add operator overloads for equality comparison with strings.

  • Add C++20-compliant comparisons.

  • Add unit tests.

Fixes #3654.

To Do:

  • Update documentation:
    • Add missing operator pages.

@coveralls
Copy link

coveralls commented Aug 3, 2022

Coverage Status

Coverage remained the same at 100.0% when pulling 3dbd31f on falbrechtskirchinger:json_pointer-operators_issue3654 into e839f58 on nlohmann:develop.

@falbrechtskirchinger
Copy link
Contributor Author

falbrechtskirchinger commented Aug 3, 2022

This PR is ready for code review. Documentation is missing two pages: api/json_pointer/operator_eq.md and api/json_pointer/operator_ne.md

The other regression PR has some minor issues I'm still figuring out and may expand in scope.

@falbrechtskirchinger falbrechtskirchinger force-pushed the json_pointer-operators_issue3654 branch from 5bdbae4 to 3dbd31f Compare August 5, 2022 08:23
Copy link
Contributor Author

@falbrechtskirchinger falbrechtskirchinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@falbrechtskirchinger falbrechtskirchinger marked this pull request as ready for review August 5, 2022 08:25
Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@nlohmann nlohmann added this to the Release 3.11.2 milestone Aug 5, 2022
@nlohmann nlohmann merged commit 9e1a7c8 into nlohmann:develop Aug 5, 2022
@falbrechtskirchinger falbrechtskirchinger deleted the json_pointer-operators_issue3654 branch August 5, 2022 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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