C++11: Allow brace initializers in return statements.

Like return {1, 2};

Change-Id: I7442da1866b0106bc075783653c95c16ebedb51a
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kamm
2012-09-12 14:35:49 +02:00
committed by hjk
parent bd04f2edbf
commit 0bdf1dc406
2 changed files with 8 additions and 1 deletions

View File

@@ -12,3 +12,7 @@ void main() {
Type var2{{1, 2, 3}, 4};
var3 += {1, 2};
}
T foo() {
return {1, 2, {"foo", 7}};
}