Skip to content

Commit

Permalink
[rich-enums] Doc improvements 2024-09-13
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkaratarakis committed Sep 13, 2024
1 parent 1c431ab commit 5a498dc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/enums_test_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ class Color : public fixed_containers::rich_enums::SkeletalRichEnum<Color, detai
using SkeletalRichEnum::SkeletalRichEnum;

public:
static constexpr const Color& RED() // NOLINT(readability-identifier-naming)
{
return ::fixed_containers::rich_enums_detail::value_of<Color>(BackingEnum::RED).value();
}
// Optionally use this macro to simplify defining rich enum constants
// Forwarders for the enum constants. Macro not strictly required, see subsequent examples.
FIXED_CONTAINERS_RICH_ENUM_CONSTANT_GEN_HELPER(Color, RED)
FIXED_CONTAINERS_RICH_ENUM_CONSTANT_GEN_HELPER(Color, YELLOW)
FIXED_CONTAINERS_RICH_ENUM_CONSTANT_GEN_HELPER(Color, BLUE)
FIXED_CONTAINERS_RICH_ENUM_CONSTANT_GEN_HELPER(Color, GREEN)
Expand Down

0 comments on commit 5a498dc

Please sign in to comment.