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

Using BETTER_ENUM inside a class declaration? #123

Open
Yunsen opened this issue Sep 5, 2024 · 2 comments
Open

Using BETTER_ENUM inside a class declaration? #123

Yunsen opened this issue Sep 5, 2024 · 2 comments

Comments

@Yunsen
Copy link

Yunsen commented Sep 5, 2024

In most of my coding works, usually the most cases in which the enum is defined inside a class so that the enum is more specific.
for example, there is a demo:
class Clothes
{
public:
enum class Color
{
Red,
Black,
White,
}
};
So, can this request will be supported in the future?

@aantron
Copy link
Owner

aantron commented Sep 5, 2024

This is subject to the limitations here. I haven't tried these on more modern versions of C++.

@tranglecong
Copy link

tranglecong commented Oct 30, 2024

@Yunsen my enum can defined inside a class. You can considering to use as alternative.
trlc enum

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

3 participants