Does passing multiple arguments via ::std::initializer_list
offer any advantages over the variadic function template method?
In code:
te
On occasions I had used variadic template functions just like yours, but then realized that I needed more parameters, possibly templated. In that case typename... A
is too eager, and I was happy to rely on braces on the call site to clearly specify where the variadic list of arguments ends, and where the following optional arguments started.