Added support for cpp0x uniform initialization.
Added testcases. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11413 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9fe598cd97
commit
63a7f06afb
3 changed files with 33 additions and 1 deletions
|
|
@ -5846,6 +5846,17 @@ mem_initializer : idcolon LPAREN {
|
|||
skip_balanced('(',')');
|
||||
Clear(scanner_ccode);
|
||||
}
|
||||
| idcolon LBRACE {
|
||||
/* Uniform initialization. eg.
|
||||
struct MyStruct {
|
||||
MyStruct(int x, double y) : x_{x}, y_{y} {}
|
||||
int x_;
|
||||
double y_;
|
||||
};
|
||||
*/
|
||||
skip_balanced('{','}');
|
||||
Clear(scanner_ccode);
|
||||
}
|
||||
;
|
||||
|
||||
template_decl : LESSTHAN valparms GREATERTHAN {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue