Alternatively: ((std::cout << args << std::endl), ...);
With the caveat that this could call an overloaded comma if one is available for the expression (std::cout << args << std::endl)
If the code is supposed to be very generic it might be necessary to convert the expression to void, to use the built-in comma only: (void(std::cout << args << std::endl), ...);