
18 Mar
2011
18 Mar
'11
4:19 p.m.
On 3/18/2011 11:11 AM, Kenny Riddile wrote:
having "delete p" do *anything other* than p = 0 for a smart pointer would be suicidal.
That actually kind of sounds like the exact opposite of what I said :)
Well, you elided my second point. My point was, clearly, that "delete p" can't really call delete. So, the only thing it can do is the equivalent of "p.reset". And I was arguing for just using "p.reset" (which I prefer over "p=0", because it's easier to search for)