17 Oct
2018
17 Oct
'18
1:08 a.m.
Gavin Lambert wrote:
Technically it's UB to access a global bool after "destruction" (just like any other object)...
The only way to destroy a bool is to placement-new some other object over it, if I'm not mistaken. :-) (Or, if it's in a union, you can assign to some other member, I suppose.)