79401914

Date: 2025-01-31 06:24:39
Score: 0.5
Natty:
Report link

An alternative solution would be to have your mask within your enum itself.

enum class Flags : uint32_t {
    A    = 1 << 0,
    B    = 1 << 1,
    C    = 1 << 2,
    X    = 1 << 7,    
    MASK = A + B + C + X
};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arun Kumar B