This PR changes the behavior of operators introduced in #279. Now, the | operator returns the underlying type and |= returns the enum type. The reason is that the former is often used to ask about the existence of values and the latter used to update a flag. We want the first case to be boolean-like and the latter to retain its "enum-ness".
This PR changes the behavior of operators introduced in #279. Now, the
|
operator returns the underlying type and|=
returns the enum type. The reason is that the former is often used to ask about the existence of values and the latter used to update a flag. We want the first case to be boolean-like and the latter to retain its "enum-ness".