Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SamReidHughes
on Aug 20, 2023
|
parent
|
context
|
favorite
| on:
The missing C++ smart pointer
I've seen this sort of pointer (assuming the author means it's nullable) be called "clone_ptr<T>" but it called T's clone() method. Because T might be a base class, invoking the pointee's copy constructor in C++ is not a great idea.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: