【发布时间】:2010-07-31 11:14:24
【问题描述】:
使用 g++ 的正确方法是什么:
template < typename F >
void g (F f);
template < typename ... A >
void h (A ... a);
template < typename ... A >
void f (A ... a) {
g ([&a] () { h (a...); }); // g++-4.6: error: parameter packs not expanded with »...«
}
【问题讨论】: