Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
neutronicus
on Oct 3, 2021
|
parent
|
context
|
favorite
| on:
Unified Shader Programming in C++
Let's play "who's supposed to call 'free' on this pointer"!!!
corysama
on Oct 3, 2021
|
next
[–]
This is why I really, really like unique_ptr. You either explicitly take responsibility (and it implicitly gets handled) or you explicitly hand it off.
maccard
on Oct 3, 2021
|
prev
[–]
And which free do you call? Do you call "free", "my_free", "3rdparty_typea_free" or "3rdparty_typeb_free"?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: