Enhanced to check typedef'd parameters in directors - Scott Michel contribution.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5238 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
71e1a81d66
commit
57b8d0ea70
2 changed files with 31 additions and 7 deletions
|
|
@ -11,7 +11,8 @@ public:
|
|||
{ /* NOP */ }
|
||||
virtual ~Foo()
|
||||
{ /* NOP */ }
|
||||
virtual int meth(T param) { return param; }
|
||||
virtual int meth(T param)
|
||||
{ return param; }
|
||||
};
|
||||
|
||||
typedef Foo<int> Foo_int;
|
||||
|
|
@ -21,6 +22,7 @@ class Bar
|
|||
public:
|
||||
virtual ~Bar();
|
||||
virtual Foo_int *meth();
|
||||
virtual void foo_meth(Foo_int &, int);
|
||||
};
|
||||
|
||||
Bar::~Bar()
|
||||
|
|
@ -31,6 +33,11 @@ Bar::meth()
|
|||
{
|
||||
return new Foo_int();
|
||||
}
|
||||
|
||||
void
|
||||
Bar::foo_meth(Foo_int &arg, int param)
|
||||
{
|
||||
}
|
||||
%}
|
||||
|
||||
%template(Foo_integers) Foo<int>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue