Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/template_construct.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

16 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>;