logoalt Hacker News

HarHarVeryFunnyyesterday at 12:32 PM1 replyview on HN

No doubt reflection has been built with other use cases in mind, but it sure would have been nice just to have std::to_string(enum)


Replies

bluGillyesterday at 1:11 PM

C++ conference speakers (including keynotes) are now begging everyone to stop using enum to string in their example. While they are a simple and easy to understand example, reflection is for much more interesting problems. I can't think of any other example that I would type into a comment box or put on a slide.

show 4 replies