Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several string representations of an enum #26

Merged
merged 1 commit into from
Nov 28, 2024
Merged

Conversation

nicktrandafil
Copy link
Owner

toStrings<2>(x) will produce the 2d string representation from

YENXO_DEFINE_ENUM(X
    , (a, , "repr0", "repr1", "repr2")
);

which is "repr2".

Note, indexing starts from 0.

toStrings<2>(x) will produce the 2d string representation
from

    YENXO_DEFINE_ENUM(X
        , (a, , "repr0", "repr1", "repr2")
    );

which is "repr2".

Note, indexing starts from 0.
@nicktrandafil nicktrandafil merged commit 8a45b7a into master Nov 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant