Category : argument-unpacking

Since C++14 cannot use fold expression, in order to make a function that calls bar on each variadics, one have to use function overloading. template<typename Arg> void foo(Arg arg) { bar(arg); } template<typename Arg, typename …Args> void foo(Arg arg, Args… args) { bar(arg); foo(args…); } But using comma operator and parenthesis in bracket, one can ..

Read more