... except for the fact it is not guaranteed to work.

It's ability to work in C++ depends on the memory model of the processor, reorderings performed by the compiler, and details of how the...