Create KJ_SWITCH_ONEOF to switch over OneOf.
Up until now, I've always felt kj::OneOf had a rather janky interface, which made me avoid using it in other interfaces. With this macro I'm pretty happy with it as *the* way to define variants.
Showing
Please
register
or
sign in
to comment