Use library completely without std::allocator (operator new) #4676
Replies: 1 comment
-
We would also like to know more information on this issue. We have an application that is running on an embedded device which uses a very strict memory allocation strategy. All memory allocations are wrapped with our own allocators, which are stl compatible, so that we can budget for all memory usage, down to the byte, by the various subsystems. When using this library and calling the 'dump' method, there is a global call to 'new' for the 'std::make_shared' inside the 'output_adapter' class constructor. Obviously this is on account of the 'output_adapter_t' using 'std::shared_ptr'. Is there any way to avoid this? Kind regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is it possible to use the library completely without a call to new operator.
I set the basic json to my containers and allocator.
This works but I still get calls to new() because the lib uses vector<> or make_shared<> in the code.
Basically I do nothing special with the lib. Just creating some json strings and dumping it to other functions
Because I am not able to check what happens in detail I wanted to ask the community if this is possible.
Regards
Beta Was this translation helpful? Give feedback.
All reactions