Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Temp variable uses wrong storage

Open
#694 7 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@grisumbras is already working on this.

Since Apr 15, 2022.

Assessment

This issue has not been assessed yet.

Description

I think instead of using the array's storage it should use the default storage:
https://github.com/boostorg/json/blob/83c364afaf31b58cfe8b97ab159c406c508f47c9/include/boost/json/impl/array.hpp#L527

Otherwise we are allocating and deallocating in the wrong order, and we are not making correct use of monotonic storage. We should review all functions which require temporary storage (e.g. object::insert).

Dominant language
C++
Stars
479
Forks
110
Avg merge
1d 23h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/json

All issues in boostorg/json

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.