swig/Examples/test-suite/cpp20_lambda_template.i
2022-07-27 09:30:39 +12:00

12 lines
332 B
OpenEdge ABL

%module cpp20_lambda_template
// We just want to test that SWIG doesn't choke parsing this so suppress:
// Warning 340: Lambda expressions and closures are not fully supported yet.
%warnfilter(WARN_CPP11_LAMBDA);
%include <std_vector.i>
%inline %{
#include <vector>
auto templated_lambda = []<typename T>(std::vector<T> t){};
%}