datalibrary icon indicating copy to clipboard operation
datalibrary copied to clipboard

References to other values in enums

Open lundmark opened this issue 8 years ago • 2 comments

References to other values in enums, such as:

enum A { B };

enum C { D = B, };

lundmark avatar Dec 06 '17 08:12 lundmark

This shouldn't be that hard... But I'm just curious, what is your usecase?

wc-duck avatar Dec 06 '17 15:12 wc-duck

Sorry that is a good point.

The idea is of course to be able to do things such as: D = ~B

or other bitfield manipulations with them.

lundmark avatar Dec 07 '17 06:12 lundmark