3 ms·
> But for some reason, it's thinking it can just reread the flags from the structure after that function, which has a non-const pointer The pointer being const
by account42 6y ago
> But for some reason, it's thinking it can just reread the flags from the structure after that function, which has a non-const pointer
The pointer being const would not give the compiler any more guarantees that would allow it to reorder the read.