
4 Dec
2009
4 Dec
'09
3:40 p.m.
Hi Helge, In your load and store methods, you have code something like: T i; T v=*reinterpret_cast<volatile const T *>(&i); *reinterpret_cast<volatile T *>(&i)=v; Shouldn't this be const_cast ? I.e. something like: T v = const_cast<volatile const T&>(i); const_cast<volatile T &>(i) = v; (Comments from language lawyers welcome!) Phil.