Apologies if I'm breaking the "I'm involved" rule here, but just seeking advice, really. I hammered
this C++ question but the OP doesn't seem happy about it. (Presumably, the reopen vote is the OP's.) The problem here is that the title of the question (i.e. "Is this UB?") isn't
quite the actual problem (which the top answer to my dupe target addresses 100%). I was actually looking to post an answer when I found the dupe. ...