Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
winter_blue
on June 3, 2018
|
parent
|
context
|
favorite
| on:
One year of C
You’d rather debug malloc/free than try to find and eliminate shared_ptr cycles? You really think that’s easier? Besides, you shouldn’t be using shared_ptr much at all, and should try to use unique_ptr everywhere.
vvanders
on June 3, 2018
[–]
Yup. Most of the debug CRTs contain fantastic malloc/free debugging and pointer overwrite tools.
FWIW I don't consider unique_ptr a smart pointer, that's just RAII in action.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: