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.
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
aand a pointer tothis, but in the generated code, even thoughais declared it is not initialized by the constructor of the lambda structure.