----- 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
- printf-like function. jf
- Re: printf-like function. Jonathan Wakely via Gcc
- Re: printf-like function. jf
- Re: printf-like function. paulf