Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
SamReidHughes
· 3y ago · 0 comments
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.
Comments
No comments yet.
Better HN