On Thursday, 21 December 2017 at 18:20:19 UTC, H. S. Teoh wrote:
When the scoped destruction of structs isn't an option, RefCounted!T seems to be a less evil alternative than an unreliable class dtor. :-/

Alas, RefCounted doesn't work well with inheritance...

Though, what you could do is make the refcounted owners and borrow the actual reference later.

Reply via email to