Skip to content

Lambda capture in a member function #379

@tiberiu-maran

Description

@tiberiu-maran

Hi, I was playing around with this very neat tool, and I stumbled upon a scenario where it doesn't seem to produce the right result.

https://cppinsights.io/s/bb1d1c12

Basically the code should capture both the local variable a and a pointer to this, but in the generated code, even though a is declared it is not initialized by the constructor of the lambda structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions