----- 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

Reply via email to