printf-like function.
paulf@free.fr
paulf@free.fr
Fri Mar 20 12:14:00 GMT 2020
----- Original Message -----
> You should look at https://en.cppreference.com/w/cpp/utility/format
> and the reference implementation https://fmt.dev/
>
> There's no need for compiler magic.
This is fairly common. Qt just uses placeholders %1 %2 etc.
Also from memory, Stroustup's C++ Programming Language 4e has an example of a typesafe printf. (My copy is at work so I can't check).
A+
Paul
More information about the Gcc
mailing list