Skip to content

Let destructors move out of class fields if it's the last use. #2955

Closed
@bblum

Description

@bblum

Currently writing taskgroup code, where the destructor needs to pass some exclusive ARCs around, which are noncopyable. This is only possible since every function that I pass them to takes them by reference - but maybe somebody will need to destruct a class by passing a noncopyable thing in move mode.

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