C++11 variadic templates and comma-separated expressions equivalence
问题 In a variadic template the ... operator expands a parameter pack into a series of comma-separated arguments (in the simplest form). My question is: how come that calling some_function() for multiple arguments comma-separated works and calling it with the ... operator doesn't? I'm talking about this code: template<typename... Args> inline void expand(Args&&... args) { some_function(22),some_function(32); // Works some_function(args)...; // Doesn't work - ERROR } Shouldn't these two lines