
21 May
2008
21 May
'08
7:29 a.m.
Max wrote:
To make it clearer, I'm finding something like this: class Foo { int & i_; Foo& operator=(const Foo& rhs) { if(&rhs == this) return *this; i_ = rhs.i_; return *this; } }
this is not accepted by my VC9 compiler.
It isn't? I don't see a problem (other than that it may not be what you intend),
Oops, It's indeed not my intention. What I wanted is to bind i_ to rhs.i_; Thanks and B/Rgds. Max