operator bool mapping to __nonzero__ as per Josh Cherry suggestion
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10315 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e314d97f32
commit
b697a8fc75
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@
|
|||
/* Special cases */
|
||||
%rename(__invert__) *::operator~;
|
||||
%rename(__call__) *::operator();
|
||||
%rename(__nonzero__) *::operator bool;
|
||||
|
||||
/* Ignored operators */
|
||||
%ignoreoperator(LNOT) operator!;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue