I am using a fold expression to print elements in a variadic pack, but how do I get a space in between each element?
Currently the output is \"1 234\", the desired outpu
If you need space only between numbers (and not after the last or before the first too), you might do:
template void print_seq(std::index_sequence) { const char* sep = ""; (((std::cout << sep << Is), sep = " "), ...); }
Demo