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:
Marcelo Matus 2005-12-30 09:28:10 +00:00
commit 24497eaf54

View file

@ -146,9 +146,12 @@ namespace Space {
// 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::operator+=(int) "$action /* Space::Base::Base() */";
%inline %{
namespace Space {
struct Base {
int operator+=(int) { return 0; }
virtual const char** virtualmethod(int a) const { return 0; }
virtual ~Base() {}
};