On 13.10.2010 22:05, Steinar Bang wrote: > I'm divided on whether I would move the delete of the RefCounter object > into the dec_ref method, or leave it where it is. On one hand it feels > like good encapsulation to put it together with the dec_ref, on the > other hand, I've always been wary of "delete this;"...
Why? Just because it feels strange to you? Same reason why you'd rather copy-past lots of classes instead of instantiate templates? ;) Kidding, but a serious question nevertheless. -- Brane