Global comptime counter

We had a whole thread about this: C/C++ macro challenge #1: BOOST_PP_COUNTER

Edit - just saw @ianprime0509’s post on the same thing. Most of the solutions right now are kind of hacky. A builtin would be nice or doing pre-processing on the file during a build step would also be possible. Sequentially replace the text and increment a counter…

1 Like