A safe union, or variant, disallowing reading invalid types
The C API implements operand values as regular unions, enabling (mis)interpretation of the stored value in any of the
encompassed types. This implementation provides a safer union that throws when interpreting the union's value in a
different type than it was stored as.
A safe union, or variant, disallowing reading invalid types
The C API implements operand values as regular unions, enabling (mis)interpretation of the stored value in any of the encompassed types. This implementation provides a safer union that throws when interpreting the union's value in a different type than it was stored as.