to_{binary format} does not provide a mechanism for specifying a custom allocator for the returned type. #2982
Labels
aspect: binary formats
BSON, CBOR, MessagePack, UBJSON
kind: enhancement/improvement
release item: ⚡ improvement
Milestone
What is the issue you have?
basic_json
provides an allocator that is passed to the types used for deserialisation, but there is no way of specify an allocator to use for the object that is returned byto_bson
,to_cbor
, and so on. The adaptor for output is explicitly specialised onstd::vector
without providing a mechanism for specifying the allocator thatstd::vector
uses.The text was updated successfully, but these errors were encountered: