swig/Examples/test-suite/template_construct.i
Dave Beazley 12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00

15 lines
220 B
OpenEdge ABL

%module template_construct
// Tests templates to make sure an extra <> in a constructor is ok.
%inline %{
template<class T>
class Foo {
T y;
public:
Foo<T>(T x) : y(x) { }
};
%}
%template(Foo_int) Foo<int>;