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 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)}); \