Christopher Wright wrote:
<snip>
void main ()
{
    auto a = new A;
    auto b1 = new B(a);
    auto b2 = new B(a);
    auto a2 = new A;
    b1.a += a2; // okay, b1.a is b2.a
    b1.a = b1.a + a2; // now b1.a !is b2.a
}

If these comments reflect what the code you posted does for you, your compiler is broken. Here, the code correctly doesn't even compile.

Stewart.

Reply via email to