Use proxy class for rvalue reference parameters
This commit is contained in:
parent
dbf44fc181
commit
b31507a657
1 changed files with 1 additions and 0 deletions
|
|
@ -3237,6 +3237,7 @@ Node *Language::classLookup(const SwigType *s) const {
|
||||||
(Len(prefix) == 0) || // simple type (pass by value)
|
(Len(prefix) == 0) || // simple type (pass by value)
|
||||||
(Strcmp(prefix, "p.") == 0) || // pointer
|
(Strcmp(prefix, "p.") == 0) || // pointer
|
||||||
(Strcmp(prefix, "r.") == 0) || // reference
|
(Strcmp(prefix, "r.") == 0) || // reference
|
||||||
|
(Strcmp(prefix, "z.") == 0) || // rvalue reference
|
||||||
SwigType_prefix_is_simple_1D_array(prefix); // Simple 1D array (not arrays of pointers/references)
|
SwigType_prefix_is_simple_1D_array(prefix); // Simple 1D array (not arrays of pointers/references)
|
||||||
// Also accept pointer by const reference, not non-const pointer reference
|
// Also accept pointer by const reference, not non-const pointer reference
|
||||||
if (!acceptable_prefix && (Strcmp(prefix, "r.p.") == 0)) {
|
if (!acceptable_prefix && (Strcmp(prefix, "r.p.") == 0)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue