
Hi Michael, On 2013-11-14 19:20, Michael Marcin wrote:
It seems a common example for C++11 and variadic templates is a typesafe printf which is supposed to obsolete things like Boost.Format. However there doesn't seem to be one usable out of the box.
If this is really a large improvement shouldn't this facility be in boost?
I have a typesafe printf implementation based on Metaparse. It takes a
different approach as the common example for variadic templates. It adds
type checking to the non-safe printf and has no runtime overhead. The
current implementation generates code using macros instead of variadic
templates, but I'm planning to extend it in the near future.
You can use it like this:
printf