From b8183368d67257319538947987baff06629e8ee4 Mon Sep 17 00:00:00 2001 From: Jakob Gamper <97gamjak@gmail.com> Date: Sat, 13 Jun 2026 23:29:00 +0200 Subject: [PATCH 1/2] feat: add EnumNameStr to provide string representation of enum names --- include/mstd/enum.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mstd/enum.hpp b/include/mstd/enum.hpp index b6f2087..ddd6b7a 100644 --- a/include/mstd/enum.hpp +++ b/include/mstd/enum.hpp @@ -61,6 +61,7 @@ using type = EnumName; \ using underlying_type = Underlying; \ using enum EnumName; \ + static constexpr std::string_view EnumNameStr = #EnumName; \ \ static constexpr auto values = \ std::to_array({LIST(MSTD_ENUM_MAKE_VALUE)}); \ From 8111df53ea37195e398be046b234a925e34daac0 Mon Sep 17 00:00:00 2001 From: Jakob Gamper <97gamjak@gmail.com> Date: Sat, 13 Jun 2026 23:29:57 +0200 Subject: [PATCH 2/2] feat: add EnumNameStr as a member of EnumMeta in changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3afdd4f..cec64e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. ## Next Release +### Enum + +- add `EnumNameStr` as a member of EnumMeta + ## [0.1.2](https://github.com/repo/owner/releases/tag/0.1.2) - 2026-05-07