Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Aardwolf
on July 2, 2024
|
parent
|
context
|
favorite
| on:
Reflection for C++26
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
einpoklum
on July 2, 2024
[–]
You can use `.name()` and that also works fine. Remember std::string is a heap-based thing.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
The for loop required to do enum to string really makes it