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

22 lines
332 B
OpenEdge ABL

%module template_partial_arg
%inline %{
template <class T> class Foo {
public:
T bar() { return T(); }
T* baz() { return 0; }
};
template <class T> class Foo<T*> {
public:
T bar() { return T(); }
T* baz() { return 0; }
};
class Bar {};
%}
%template(Foo1) Foo<Bar>;
%template(Foo2) Foo<Bar*>;