close
Skip to content

Properly constrain non-string json_pointer overloads#3681

Merged
nlohmann merged 1 commit into
nlohmann:developfrom
falbrechtskirchinger:fix-constraints
Aug 7, 2022
Merged

Properly constrain non-string json_pointer overloads#3681
nlohmann merged 1 commit into
nlohmann:developfrom
falbrechtskirchinger:fix-constraints

Conversation

@falbrechtskirchinger
Copy link
Copy Markdown
Contributor

Add missing is_basic_json constraints to the deprecated non-string json_pointer overloads.

Thanks, @alex-700, for reminding me.

Compared to #3658, the value() functions and the regression test have been omitted. Both are handled in #3663.

Closes #3658.

@nlohmann
Copy link
Copy Markdown
Owner

nlohmann commented Aug 5, 2022

In which order should this be merged? After #3663?

@github-actions github-actions Bot added the M label Aug 5, 2022
@coveralls
Copy link
Copy Markdown

coveralls commented Aug 5, 2022

Coverage Status

Coverage remained the same at 100.0% when pulling 8cc150c on falbrechtskirchinger:fix-constraints into b0422f8 on nlohmann:develop.

@falbrechtskirchinger
Copy link
Copy Markdown
Contributor Author

Shouldn't matter since this one doesn't touch value(). I'd expect it to merge without conflicts.

Comment thread include/nlohmann/json.hpp Outdated
Comment thread include/nlohmann/json.hpp
Copy link
Copy Markdown
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.

Copy link
Copy Markdown
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 7, 2022
@nlohmann nlohmann merged commit dae5412 into nlohmann:develop Aug 7, 2022
@falbrechtskirchinger falbrechtskirchinger deleted the fix-constraints branch August 7, 2022 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants