promote the 'using' methods to public. Also, fix a sef. fault for using with pointers, see using_pointers.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5525 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6acb22fbfc
commit
3a2ad32d92
3 changed files with 95 additions and 2 deletions
17
SWIG/Examples/test-suite/using_pointers.i
Normal file
17
SWIG/Examples/test-suite/using_pointers.i
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
%module using_pointers
|
||||
|
||||
%inline %{
|
||||
class Foo {
|
||||
public:
|
||||
int x;
|
||||
virtual Foo* blah() { return this; }
|
||||
};
|
||||
|
||||
class FooBar : public Foo {
|
||||
public:
|
||||
using Foo::blah;
|
||||
using Foo::x;
|
||||
};
|
||||
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue