Variadic functions vs. Variadic templates are very error-prone, says Sandor Dargo. They rely on macros, which is clearly not the way in 2022, but they are also entirely unsafe and they rely on that you count the number of passed-in arguments. Let’s have a look at the implementation of our printAll.

6m read timeFrom sandordargo.com
Post cover image
Table of contents
What are variadic functions?What are variadic templates?ConclusionConnect deeper

Sort: