Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boost::json::serializer should take a storage_ptr #844

Closed
pdimov opened this issue Jan 20, 2023 · 0 comments · Fixed by #848
Closed

boost::json::serializer should take a storage_ptr #844

pdimov opened this issue Jan 20, 2023 · 0 comments · Fixed by #848

Comments

@pdimov
Copy link
Member

pdimov commented Jan 20, 2023

When converting a JSON value to a string, it's sometimes necessary to use a specific storage_ptr for the temporary allocations done by the json::serializer. One such example in https://github.com/pdimov/mustache/blob/develop/src/renderer.cpp#L849. The Mustache library does all its temporary allocations with a user-provided storage_ptr, so it would be nice if I can give the serializer that pointer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant