-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Add support for deserialization of STL containers of non-default constructable types (fixes #2574). #2576
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
Merged
nlohmann
merged 18 commits into
nlohmann:develop
from
AnthonyVH:non_default_constructable_stl_containers
Apr 25, 2021
Merged
Add support for deserialization of STL containers of non-default constructable types (fixes #2574). #2576
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1e825e4
Add support for deserialization of STL containers of non-default cons…
AnthonyVH c0a8b45
Renamed template parameter and added some comments.
AnthonyVH 1b113f7
Added extra tests to improve coverage.
AnthonyVH 23f462b
Reduced code duplication, renamed tag to identity_tag.
AnthonyVH 672e8bf
Fixed std::pair trying to deserialize via array functions.
AnthonyVH 6ebf274
Add internal version of is_default_constructible to work around LWG 2…
AnthonyVH 6278f31
Simplify from_json overloads.
AnthonyVH 6ef1614
Refactor json::get() to use priority_tag.
AnthonyVH fc8c584
Regenerated single include.
AnthonyVH fbf6df6
Enable member function calls in trailing return decltype expressions …
AnthonyVH d7c0f15
Merged from_json for pair and tuple to try to fix C2995 error in old …
AnthonyVH 6eb37e9
Only add conditional constexpr to get() for >= C++14 to work around e…
AnthonyVH 848927a
Updated comments as requested.
AnthonyVH 130382f
Remove comment about GCC commit which didn't really relate to the code.
AnthonyVH 333612c
Merge remote-tracking branch 'upstream/develop' into non_default_cons…
AnthonyVH 322bc99
Reran amalgamate.
AnthonyVH 8e79917
Fix clang-tidy complaints.
AnthonyVH 2b86513
Fixing CI errors.
AnthonyVH File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #pragma once | ||
|
|
||
| namespace nlohmann | ||
| { | ||
| namespace detail | ||
| { | ||
| // dispatching helper struct | ||
| template <class T> struct identity_tag {}; | ||
| } // namespace detail | ||
| } // namespace nlohmann |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.