boostorg / boostorg/hana

Enum concept

Open
#491 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.9k
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Boost.Hana currently has `Struct`. I have some code that performs automatic serialization for `Struct` types. However an `Enum` is missing in Boost.Hana to help here further.

> The `Struct` concept [...] it allows accessing the names of the members of a user-defined type, and also the value of those members

For the `Enum` concept, I'd expect a similar mapping, however values should be `hana::int_c` (non-mutable).

Contributor guide

Open the contributing guide

Research direction

Start by reading Boost.Hana's existing Struct concept documentation and implementation, then trace the related tests or examples if available. Clarify how an Enum should expose its mapping and how non-mutable hana::int_c values are represented; done means the concept is documented, implemented, and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.