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:
parent
3372c2ba62
commit
2f68aa0a34
4 changed files with 9 additions and 7 deletions
|
|
@ -789,7 +789,7 @@ namespace Swig {
|
|||
octave_value fcn = get_global_value(symbol, true);
|
||||
if (!fcn.is_function() && !fcn.is_function_handle())
|
||||
return false;
|
||||
ret = fcn.subsref("(", std::list < octave_value_list > (1, args));
|
||||
ret = fcn.subsref("(", std::list < octave_value_list > (1, args), 1);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue