Hi,
in that context hh
is at global scope, and therefore can’t be captured like that. You can simply use it in the body of the lambda (i.e. just remove the capture), it will work. A compiled C++ reproducer here.
Cheers,
Enrico
Hi,
in that context hh
is at global scope, and therefore can’t be captured like that. You can simply use it in the body of the lambda (i.e. just remove the capture), it will work. A compiled C++ reproducer here.
Cheers,
Enrico