I was reading about folding expressions and found an example of what was used before folding expressions:
template <class... Ts>
void print_all(std::ostream& os, Ts const&... args) {
using expander = int[];
(void)expander{0,
(void(os << args), 0)...
};
}
The problem is the void(os << args) bit. What does void mean in this context? I've already tried to search for this, but it is pretty generic.
Thanks for your time.