Added example of friend operator use to Examples/octave/operator, fixed minor bug that causes a panic in octave 3.0.5. Tested examples work for octave 3.0.5, 3.2.4, and 3.4.0. (thanks to Karl Wette)

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Xavier Delacour 2011-08-31 20:54:11 +00:00
commit 2f68aa0a34
4 changed files with 9 additions and 7 deletions

View file

@ -30,7 +30,6 @@ public:
double im() const { return ipart; }
};
ComplexVal operator*(const double &s, const ComplexVal &c) {
return ComplexVal(s*c.re(), s*c.im());
}