Re:Show HN: Compile-time HTML parsing in C++14
by stevelosh on Monday July 31, 2017 @10:25PM
(#14897462)
Vanilla macros are one option.
Or you could use a function and a compiler macro to make it more of an optimization -- if the argument is known at compile-time just parse it then, otherwise wait til runtime:
Actual example, using `string-upcase` to stand in for an HTML parsing library:
`html` is only called once, to handle the call that isn't known at compile time.
[ Parent
| on HN ]
There are no comments on this comment yet.