On Thu, 15 Mar 2012, NightStrike wrote:
For simple things like this, and much more complicated things beyond it, is there a way to cast something to "volatile" for one particular usage?
Ian's answer is the right one. For this particular subquestion, yes, it is possible, just do a cast at the pointer level and access the object through that int volatile*.
-- Marc Glisse