Files
qt-creator/tests/auto/cplusplus/cxx11/data/packExpansion.1.cpp
Christian Kamm 2aa27e6d22 C++11: Make expression-list expand to initializer-list.
This will fix a couple more places where brace-init-lists and
pack expansions are allowed but are not currently accepted by
the parser. For example:

foo(abc...);

now parses correctly.

Change-Id: I93710cef35154fea8437329f3174e4a2d56637b8
Reviewed-by: hjk <qthjk@ovi.com>
2012-09-19 12:20:58 +02:00

5 lines
87 B
C++

template <class ... Args>
int foo(Args args...) {
bar(args..., {args...}, e, f);
}