Added support for C++0x rvalue and move semantics.
Added testcase. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
29004c3fcf
commit
a8209bfd68
4 changed files with 58 additions and 3 deletions
|
|
@ -4804,7 +4804,16 @@ declarator : pointer notso_direct_declarator {
|
|||
$$ = $1;
|
||||
if (!$$.type) $$.type = NewStringEmpty();
|
||||
}
|
||||
| AND notso_direct_declarator {
|
||||
| AND notso_direct_declarator {
|
||||
$$ = $2;
|
||||
$$.type = NewStringEmpty();
|
||||
SwigType_add_reference($$.type);
|
||||
if ($2.type) {
|
||||
SwigType_push($$.type,$2.type);
|
||||
Delete($2.type);
|
||||
}
|
||||
}
|
||||
| LAND notso_direct_declarator {
|
||||
$$ = $2;
|
||||
$$.type = NewStringEmpty();
|
||||
SwigType_add_reference($$.type);
|
||||
|
|
@ -5082,7 +5091,7 @@ abstract_declarator : pointer {
|
|||
Delete($2.type);
|
||||
}
|
||||
}
|
||||
| AND {
|
||||
| AND {
|
||||
$$.id = 0;
|
||||
$$.parms = 0;
|
||||
$$.have_parms = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue