-
Notifications
You must be signed in to change notification settings - Fork 998
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
chore: update jsoncons dependency #1066
Conversation
@iko1 seems like the new version does not compile in Dragonfly. |
A fix will be sent shortly |
1c7c4ca
to
f52be4a
Compare
src/core/json_test.cc
Outdated
json j1 = R"({"c":{"a":1, "b":2}, "d":{"a":1, "b":2, "c":3}, "e": [1,2]})"_json; | ||
struct pmr_sorted_policy : public sorted_policy { | ||
template<class T, class Allocator> | ||
using vector = std::vector<T, std::pmr::polymorphic_allocator<T>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use std::pmr::vector
src/core/json_test.cc
Outdated
using array = json_array<Json,vector>; | ||
|
||
template <class CharT, class CharTraits, class Allocator> | ||
using string = std::basic_string<CharT, CharTraits, std::pmr::polymorphic_allocator<CharT>>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
f52be4a
to
492dbee
Compare
492dbee
to
abe86fc
Compare
@iko1 I think the allocator fixes didn't got into the 0.170 release branch. |
c946b04
to
2905c70
Compare
Signed-off-by: iko1 <[email protected]>
Signed-off-by: iko1 <[email protected]>
Signed-off-by: iko1 <[email protected]>
Signed-off-by: iko1 <[email protected]>
2905c70
to
49ab388
Compare
The allocator fixes got into the jsoncons 0.171.0 release |
@iko1 thanks, looks like the new version works correctly! We're going to have a new release soon, so to minimize disruption I'm going to merge this right afterwards. |
The next version of jsoncons includes a few bug fixes and performance enhancements
Moreover, it contains the fix that allows the jsoncons to use mimalloc allocator instead of the standard allocator.