Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/valuewrapper.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06: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> >;