Thanks to Avi Kivity, {fmt} can now format enums by name using C++26 reflection:...
vitaut π€β€οΈπ€ πΊπ¦ @vitaut@mastodon.social
Thanks to Avi Kivity, {fmt} can now format enums by name using C++26 reflection:
enum class [[=fmt::as_identifiers]] color { red, green, blue };
fmt::print("{}", color::green); // green