grasph / wrapit

Automatization of C++--Julia wrapper generation
MIT License
98 stars 12 forks source link

Avoid capturing types in the template lambda #28

Closed halleysfifthinc closed 8 months ago

halleysfifthinc commented 1 year ago

This avoids capturing the types variable (which currently causes the compiler to complain), and follows the example in the libcxxwrap-julia repo. Alternately, we could change the lambda definition to allow implicit captures with [&] (I think?), but that doesn't seem to be necessary.