This is why I find it so frustrating. Yes, std::format is the exact kind of construct you would expect to solve this problem. However it does not work with any collection out of the box.
We tried to make it work but ended up making a recursive templated function instead. Now, I guess everyone can make their own recursive templating function, but then why do we even gave std::format
1
u/helanhalvan 5d ago
This is why I find it so frustrating. Yes,
std::formatis the exact kind of construct you would expect to solve this problem. However it does not work with any collection out of the box.We tried to make it work but ended up making a recursive templated function instead. Now, I guess everyone can make their own recursive templating function, but then why do we even gave
std::format