4 ms·
Which raises the obvious questions: why didn't C++11 implement template printf along with variadic templates? `cout <<` is ugly and hard to use for anything bu
by mFixman 6y ago
Which raises the obvious questions: why didn't C++11 implement template printf along with variadic templates?
`cout <<` is ugly and hard to use for anything but the simplest printing. Type safe printf seems like the obvious use case of variadic templates.
- signa11 6y ago> Which raises the obvious questions: why didn't C++11 implement template printf along with variadic templates? https://en.cppreference.com/w/cpp/utility/format https://en.cppreference.com/w/cpp/utility/format and the actual proposal https://www.zverovich.net/2019/07/23/std-format-cpp20.html https://www.zverovich.net/2019/07/23/std-format-cpp20.html