On Thursday, 8 October 2015 at 10:26:22 UTC, Kagamin wrote:
On Thursday, 8 October 2015 at 10:15:12 UTC, Ola Fosheim Grøstad wrote:
You have to use weak pointers for back references.

http://en.cppreference.com/w/cpp/memory/weak_ptr

I suspected as much and the next question is how is it better than C# solution except that one used to cope with C++ way?

I don't know. I don't like extensive reference counting and don't use weak_ptr. One can usually avoid cycles for resources by design.

Reply via email to