Const
by default the captured values are const, to make them mutable you can add mutable
before {}
.
Example:
.AddWeakLambda(this, [this, SafeInstanceData] () mutable { /* code */ }
by default the captured values are const, to make them mutable you can add mutable
before {}
.
Example:
.AddWeakLambda(this, [this, SafeInstanceData] () mutable { /* code */ }