Files
cpp-thirdparty/winx64/bin/swigwin-4.0.0/Examples/test-suite/valuewrapper.i
2019-08-04 21:38:19 -05:00

18 lines
242 B
OpenEdge ABL

// valuewrapper.i
%module valuewrapper
%inline %{
template <typename T> struct X {
X(int) {}
};
template <typename T> struct Y {
Y() {}
int spam(T t = T(0)) { return 0; }
};
%}
%template(Xi) X<int>;
%template(YXi) Y< X<int> >;