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

Fix ordered_map ctor with initializer_list (fixes #3343) #3370

Merged

Conversation

falbrechtskirchinger
Copy link
Contributor

@falbrechtskirchinger falbrechtskirchinger commented Mar 3, 2022

One of the ordered_map constructors was incorrectly accepting a
std::initializer_list<T> instead of std::initializer_list<value_type>.

Add regression test.

Fixes #3343.

@coveralls
Copy link

coveralls commented Mar 4, 2022

Coverage Status

Coverage remained the same at 100.0% when pulling 6a2c66f on falbrechtskirchinger:fix-ordered_map-ctor into d1e57df on nlohmann:develop.

One of the ordered_map constructors was incorrectly accepting a
std::initializer_list<T> instead of std::initializer_list<value_type>.

Add regression test.

Fixes nlohmann#3343.
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 self-assigned this Mar 7, 2022
@nlohmann nlohmann added this to the Release 3.10.6 milestone Mar 7, 2022
@nlohmann nlohmann merged commit 0fd95d2 into nlohmann:develop Mar 7, 2022
@nlohmann
Copy link
Owner

nlohmann commented Mar 7, 2022

Thanks!

@falbrechtskirchinger falbrechtskirchinger deleted the fix-ordered_map-ctor branch March 7, 2022 12:50
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.

switch from json to ordered_json
3 participants