[C++] Add static reflection / stringification for enums (#6499)
Add an EnumTraits<T> class, templated on the enum type, largely as proposed in #6499, except in the generated namespace.
Add overloaded EnumValTraits(T) to return the traits class via ADL.
Add GetEnumName(T t) helper for the common case of finding the enum string name from its value.
Changed the cpp17 test and expected test output for stringified enums.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Hi @dbaileychess @aardappel ... I wonder this seems to be stuck. Woukd you know is there anything missing to get this reviewed?
This pull request is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.
This pull request was automatically closed due to no activity for 6 months plus the 14 day notice period.