C++11: Allow brace-init-list in default argument declaration.

Change-Id: Iab707d855f98982697365f9a4cd7832877e64d17
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kamm
2012-09-19 09:29:40 +02:00
committed by hjk
parent 392c80c6e4
commit 0c3acb80c8
2 changed files with 6 additions and 1 deletions

View File

@@ -2,3 +2,5 @@ class C {
C() : _x{12}, _y({12}) {}
C(int i) : _x{{{12, 2}, {"foo"}}, {bar}}... {}
};
void foo(int i = {1, 2, 3});