cas function issue

2011-12-29 Thread Adrian Mercieca
Hi folks, I've got this very simple program, for which I keep getting compiler errors at the 'cas' function call. import std.stdio, core.atomic; class Int { public: this(int v) { this._v = v; } private: int _v; } void main() {

Re: cas function issue

2011-12-29 Thread Adrian Mercieca
On Thu, 29 Dec 2011 08:01:51 +, Adrian Mercieca wrote: Hi folks, I've got this very simple program, for which I keep getting compiler errors at the 'cas' function call. import std.stdio, core.atomic; class Int { public: this(int v) { this._v =