Skip to content

Commit

Permalink
Improve basic_json storage
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Oct 28, 2024
1 parent ca74bc8 commit 75ac56a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/jsoncons/basic_json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3122,14 +3122,18 @@ namespace jsoncons {

explicit basic_json(json_array_arg_t, const Allocator& alloc = Allocator())
{
construct<array_storage>(array(alloc), semantic_tag::none);
//construct<array_storage>(array(alloc), semantic_tag::none);
auto ptr = array_storage::create_ptr(alloc);
construct<array_storage>(ptr, semantic_tag::none);
}

explicit basic_json(json_array_arg_t,
semantic_tag tag,
const Allocator& alloc = Allocator())
{
construct<array_storage>(array(alloc), tag);
//construct<array_storage>(array(alloc), tag);
auto ptr = array_storage::create_ptr(alloc);
construct<array_storage>(ptr, tag);
}

template <typename InputIt>
Expand Down

0 comments on commit 75ac56a

Please sign in to comment.