Using serializer with custom stateful allocation
Ouverte
- Langage dominant
- C++
- Étoiles
- 479
- Forks
- 110
- Merge moyen
- 10 j 3 h
- PR mergées (30 j)
- 5
Description
I have a json `value` which I want to serialize to a string type which uses a custom allocator, and cannot allow the default global allocator to be used during the process either.
It appears that the `serializer` class uses a stack internally which can allocate. It has a `storage_ptr` member, but I don't see any way to provide my own value for this, and so it is always using the default allocator when the stack needs to reserve more space.
Not sure if this is an oversight, or I'm missing something?
Boost 1.76.0 (appears to be same situation on master)
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.