add operator case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8136 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9ca73746b6
commit
24497eaf54
1 changed files with 3 additions and 0 deletions
|
|
@ -146,9 +146,12 @@ namespace Space {
|
||||||
// The following should apply to both Base and Derived
|
// The following should apply to both Base and Derived
|
||||||
%exception Space::Base::virtualmethod(int a) const "$action /* Space::Base::virtualmethod(int a) const */";
|
%exception Space::Base::virtualmethod(int a) const "$action /* Space::Base::virtualmethod(int a) const */";
|
||||||
|
|
||||||
|
%exception Space::Base::operator+=(int) "$action /* Space::Base::Base() */";
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
namespace Space {
|
namespace Space {
|
||||||
struct Base {
|
struct Base {
|
||||||
|
int operator+=(int) { return 0; }
|
||||||
virtual const char** virtualmethod(int a) const { return 0; }
|
virtual const char** virtualmethod(int a) const { return 0; }
|
||||||
virtual ~Base() {}
|
virtual ~Base() {}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue