3
1

Parsing JSON at compile time with C++26 static reflection

2d 22h ago by lemmy.bestiver.se/u/rssbot in lobsters@lemmy.bestiver.se from lemire.me

Normally you ship this file alongside your program, open it at startup, read it, and parse it.

No, that's not normal. I'd use something that's either trivially supported by th compiler, or if absolutely necessary, parse the otherwise formatted data as a separate build step.

Not that this isn't neat, but kinda of a braindead example.