Re: printf-like function.

2020-03-20 Thread paulf
- 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++ Programm

Re: printf-like function.

2020-03-20 Thread jf
. It also would work with user defined printf-like function (which I use a lot). On 20.03.20 11:12, Jonathan Wakely wrote: On Fri, 20 Mar 2020 at 07:16, jf wrote: Hi all, I'm a printf-like function lover. I always found that better than doing something like out << "blabla : &qu

Re: printf-like function.

2020-03-20 Thread Jonathan Wakely via Gcc
On Fri, 20 Mar 2020 at 07:16, jf wrote: > > Hi all, > > I'm a printf-like function lover. I always found that better than doing > something like out << "blabla : " << var1 << ", blabla" << etc. > > Now, I use a lot of differen

printf-like function.

2020-03-20 Thread jf
Hi all, I'm a printf-like function lover. I always found that better than doing something like out << "blabla : " << var1 << ", blabla" << etc. Now, I use a lot of different platforms and to be portable, I'm supposed to use PRIxxx