News for hackers. Stuff that matters.
Re:Reflection for C++26 by Aardwolf on Tuesday July 02, 2024 @02:53AM (#40854151)
Ouch, I first thought this was the example of how to do these things _before_ reflection is introduced to C++

The for loop required to do enum to string really makes it

Re:Reflection for C++26 by einpoklum on Tuesday July 02, 2024 @03:19AM (#40854286)
You can use `.name()` and that also works fine. Remember std::string is a heap-based thing.