5 ms·
> However, in C++98, how else would you handle when you have an arbitrary number of things to print in a type-safe way? e.g. If I were the one designing the la
by kayamon 5y ago
> However, in C++98, how else would you handle when you have an arbitrary number of things to print in a type-safe way? e.g.
If I were the one designing the language, I'd have simply fixed printf to be type-safe. (e.g. via adding macro support a la Lisp)