GoLang:fix overload functions with polymorphic issue

This commit is contained in:
Anthony Li 2014-10-06 19:26:07 +08:00
commit 60da096a07
663 changed files with 180498 additions and 1 deletions

View file

@ -0,0 +1,25 @@
%module overload_polymorphic
#ifndef SWIG_NO_OVERLOAD
%inline %{
class Base {
public:
Base(){}
virtual ~Base(){}
};
class Derived : public Base {
public:
Derived(){}
virtual ~Derived(){}
};
int test(Base* base){ return 0;}
int test(int hello){ return 1; }
%}
#endif