Re: C++11 variadic function and format attribute

2012-04-16 Thread Jonathan Wakely
On 16 April 2012 08:11, Diego Ongaro wrote: > Hi all, Questions about using GCC should go to the gcc-h...@gcc.gnu.org list, not this one. > I was working on some C++11 template hacks to be able to pass C++ objects to a > function wrapping printf. What I want to do looks like this, where convert >

C++11 variadic function and format attribute

2012-04-16 Thread Diego Ongaro
Hi all, I was working on some C++11 template hacks to be able to pass C++ objects to a function wrapping printf. What I want to do looks like this, where convert might do fancy things like create string representations of objects: template void Printf(const char* format, Args&&... args) { pr