Temp variable uses wrong storage
Aperta
- Lingua principale
- C++
- Stelle
- 479
- Fork
- 110
- Merge medio
- 10g 3h
- PR unite (30g)
- 5
Descrizione
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`).
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.