You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove useless template constraint
The intent of the removed constraint was to ensure that size_t.max could
never be a valid tag value. However, because the maximum length of
TypeArgs (and therefore Types) is size_t.max, the maximum possible tag
value (i.e., type index) was already size_t.max - 1, even without the
constraint.
Add opEquals overload that uses value equality
Needed because unions are (necessarily) tested for equality using a
naive byte-by-byte comparison, which means that reference types they
contain are compared using reference equality.
Fixes Github issue pbackus#7