Skip to content

Cannot Use Mutable Lambda #21

@5cript

Description

@5cript

The following does not work using clang 14

auto promise = newPromise([](Defer d){ /*...*/ });
promise.then([bla]() mutable {
});

with
"call_traits.hpp:135:20: error: call to pointer to member function of type 'void ()' drops 'const' qualifier"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions