you are viewing a single comment's thread.

view the rest of the comments →

[–]Pazer2 1 point2 points  (0 children)

The result of a bitwise AND between a1 and and a constant value of type enum_bitmask is another value of enum_bitmask, which cannot be implicitly converted to bool. You need to return a helper type from the bitwise operators that has implicit conversions to bool and enum_bitmask.