git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
21 lines
332 B
OpenEdge ABL
21 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*>;
|
|
|