Skip to content

get_allocator(env) should have blanket wording that limits use of the allocator #352

@lewissbaker

Description

@lewissbaker

LWG issue 4356 talks about adding allocator customisation for connect-awaitable but should ensure that the allocation is freed before the resulting operation completes to ensure that the memory resource can be freed upon completion.

We should also consider having blanket wording in the get_allocator query that limits the scope of use of the returned allocator similarly to get_stop_token.

There is a question about whether or not this should be done by the callee before invoking the completion-function, or by the caller by destroying the operation state before releasing the resources.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions