I've got the following function:
template<typename... Args>
void Foo(Args && ... args)
{
std::stringstream stream;
(stream << ... << args);
// Do somethign with it
}
It can perfectly concat params into a string, but as expected it gives the output without any delimiter. Is it possible to somehow delimit the inputs from each other?
Sample output:
elg.Debug("asd", "qwe", 123);
// Prints: asdqwe123
// Should prints something LIKE: asd qwe 123
Do I have to roll my own stringstream replacement for this?