logoalt Hacker News

pjmlp • today at 9:34 AM • 1 reply • view on HN

You can play with reflection with the latest GCC on compiler explorer.

The usual enum to string example, https://godbolt.org/z/aKc8Ebza4


Replies

kvemkon • today at 4:13 PM

"template for" where one expects to see something with "switch/case" doesn't look obvious.

And how to enable output of, so to say, "C-preprocessed" source?