logoalt Hacker News

aw1621107yesterday at 11:07 PM1 replyview on HN

> I was just talking about ownership and smart pointers.

Sure, I was just clarifying that "references" in the bit I quoted covers specific things and not everything with reference-like behavior.


Replies

HarHarVeryFunnytoday at 12:21 AM

Sure, I should have been clearer that smart pointers only guarantee not to release things until there are no more SMART POINTER references to them.

As soon as you start mix 'n' matching smart pointers and raw pointers into what they are pointing to, then all bets are off!