#Compare enums

2 messages · Page 1 of 1 (latest)

split slate
#

I am making a simple logging class which has three levels in an enum: info,warning,and error. How do I make it so that my respective methods only print when the level is set to thier level or lower?

novel pewter
#

Arrange them so you can compare the order using discriminators.