16 Jan
2017
16 Jan
'17
8:23 p.m.
On 16/01/2017 09:54, Olaf van der Spek wrote:
http://abel.web.elte.hu/mpllibs/safe_printf/snprintf.html
It appears to only do checking at compile-time and then forwards to sprintf.. Yes the current implementation, but based on the expression template resulting from the parsing, one could easily produce at compile-time efficient code for formatting.
But I wasn't clear enough, I just wanted to tell that with the underlying library metaparse, one can do the compile-time dispatching. Naturally I think the compile-time cost would surely be higher than the cat() solution. -- -- Damien Buhl