Simple test of operator overload. -builtin should shine in this test.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12451 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3852ca8f44
commit
6bfc86dee7
9 changed files with 341 additions and 0 deletions
8
Examples/python/performance/operator/Simple.i
Normal file
8
Examples/python/performance/operator/Simple.i
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
%inline %{
|
||||
class MyClass {
|
||||
public:
|
||||
MyClass () {}
|
||||
~MyClass () {}
|
||||
MyClass& operator+ (int i) { return *this; }
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue