Fix wrapping of some member function pointer parameters
Generated code did not compile if both cv-qualifiers and rvalue ref-qualifiers were present in the member function pointer.
This commit is contained in:
parent
eb68e4375d
commit
45c161dfce
2 changed files with 17 additions and 1 deletions
|
|
@ -620,7 +620,7 @@ String *SwigType_str(const SwigType *s, const_String_or_char_ptr id) {
|
|||
} else if (SwigType_isrvalue_reference(element)) {
|
||||
if (!member_function_qualifiers)
|
||||
Insert(result, 0, "&&");
|
||||
if ((nextelement) && ((SwigType_isfunction(nextelement) || (SwigType_isarray(nextelement))))) {
|
||||
if ((forwardelement) && ((SwigType_isfunction(forwardelement) || (SwigType_isarray(forwardelement))))) {
|
||||
Insert(result, 0, "(");
|
||||
Append(result, ")");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue