C++26: std::is_within_lifetime

14 points by raymii


gignico

The OptBool example is not convincing. Isn’t the read of the char member UB if the active one is the bool? If that read was not UB then you could have done it at compile-time as well.