• Kenton Varda's avatar
    Create KJ_SWITCH_ONEOF to switch over OneOf. · 2d72fe55
    Kenton Varda authored
    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.
    2d72fe55
one-of-test.c++ 3.82 KB