T
Travis
So I have been doing C++ for quite awhile but have never had too many
occasions to use |.
What I'm trying to provide is ability to say enum myEnum = myEnum:ne
| myEnum::two.
I'm not sure if this makes sense so I'll use my actual situation as an
example.
I am doing a menu system where each button the screen has an access
role as does the user. So the simplest example would be.
User is Susie;
Button 1 should be available to Susie or Johnny.
So Button1.Access = myEnum::Susie | myEnum::Johnny.
Is that the best way to do it? Is it even possible? Thanks for the
help.
occasions to use |.
What I'm trying to provide is ability to say enum myEnum = myEnum:ne
| myEnum::two.
I'm not sure if this makes sense so I'll use my actual situation as an
example.
I am doing a menu system where each button the screen has an access
role as does the user. So the simplest example would be.
User is Susie;
Button 1 should be available to Susie or Johnny.
So Button1.Access = myEnum::Susie | myEnum::Johnny.
Is that the best way to do it? Is it even possible? Thanks for the
help.