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

Enum entries with non-ascii characters get removed #94

Closed
Emill opened this issue Aug 5, 2021 · 1 comment
Closed

Enum entries with non-ascii characters get removed #94

Emill opened this issue Aug 5, 2021 · 1 comment

Comments

@Emill
Copy link

Emill commented Aug 5, 2021

enum Siffra {
    ETT,
    TVÅ,
    TRE
};

This code works fine in gcc and clang, but when using magic_enum with it, it only detects ETT and TRE.

It seems the pretty_name function in magic_enum only allows 0-9, a-z, A-Z and _. Annex E in the C++ standard seems to allow these kind of characters in identifiers.

FYI, __PRETTY_FUNCTION__ includes this for TVÅ: [E = Siffra, V = TV\303\205].

@Neargye
Copy link
Owner

Neargye commented Aug 9, 2021

Fixed #95

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

No branches or pull requests

2 participants