swig/SWIG/Examples/test-suite/valuewrapper.i
William S Fulton 13de06ba39 Not linking fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4658 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-03 12:10:03 +00:00

17 lines
244 B
OpenEdge ABL

// value_wrapper.i
%module value_wrapper
%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> >;