Skip to content

Parse format string at compile time with constexpr to determine number of arguments #19

Open
@kainjow

Description

@kainjow

With constexpr it seems to be possible to parse the format string at compile time to determine if the number of arguments passed actually matches the number of arguments specified.

This could fill the void when moving from built-in printfs that have compile support (via attribute).

Links:
http://akrzemi1.wordpress.com/2011/05/11/parsing-strings-at-compile-time-part-i/
http://abel.web.elte.hu/mpllibs/safe_printf/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions