RDataframe cannot be captured because it does not have automatic storage duration

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

1 Like