Remove illegal operator overload names in R
https://github.com/swig/swig/pull/853
This commit is contained in:
parent
f9158e525f
commit
94e7482e48
2 changed files with 2 additions and 40 deletions
|
|
@ -8,9 +8,9 @@ Version 3.0.11 (in progress)
|
|||
2016-12-21: joequamt
|
||||
Changed generation of functions so that only functions
|
||||
that end in _set generate accessor functions rather than
|
||||
looking for "set"
|
||||
looking for "set".
|
||||
Change generation of operators to not have underscores
|
||||
to start in R
|
||||
to start in R. Users need to provide custom names for these operator overloads.
|
||||
|
||||
2016-12-21: olly
|
||||
Fix isfinite() checks to work with all C++11 compilers.
|
||||
|
|
|
|||
|
|
@ -1,43 +1,5 @@
|
|||
#ifdef __cplusplus
|
||||
|
||||
// These are auto-supported by the Perl-module
|
||||
%rename(__plusplus__) *::operator++;
|
||||
%rename(__minmin__) *::operator--;
|
||||
%rename(__add__) *::operator+;
|
||||
%rename(__sub__) *::operator-;
|
||||
%rename(__neg__) *::operator-();
|
||||
%rename(__neg__) *::operator-() const;
|
||||
%rename(__mul__) *::operator*;
|
||||
%rename(__div__) *::operator/;
|
||||
%rename(__eq__) *::operator==;
|
||||
%rename(__ne__) *::operator!=;
|
||||
%rename(__mod__) *::operator%;
|
||||
%rename(__gt__) *::operator>;
|
||||
%rename(__lt__) *::operator<;
|
||||
%rename(__not__) *::operator!;
|
||||
|
||||
// These are renamed, but no 'use overload...' is added
|
||||
%rename(__lshift__) *::operator<<;
|
||||
%rename(__rshift__) *::operator>>;
|
||||
%rename(__and__) *::operator&;
|
||||
%rename(__or__) *::operator|;
|
||||
%rename(__xor__) *::operator^;
|
||||
%rename(__invert__) *::operator~;
|
||||
%rename(__le__) *::operator<=;
|
||||
%rename(__ge__) *::operator>=;
|
||||
%rename(__call__) *::operator();
|
||||
%rename(__getitem__) *::operator[];
|
||||
|
||||
%rename(__seteq__) *::operator=;
|
||||
|
||||
|
||||
%rename(__land__) operator&&;
|
||||
%rename(__lor__) operator||;
|
||||
%rename(__plusplus__) *::operator++;
|
||||
%rename(__minusminus__) *::operator--;
|
||||
%rename(__arrowstar__) *::operator->*;
|
||||
%rename(__index__) *::operator[];
|
||||
|
||||
%rename(Equal) operator =;
|
||||
%rename(PlusEqual) operator +=;
|
||||
%rename(MinusEqual) operator -=;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue