Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
neerajsi
· 2mo ago · 0 comments
I agree with what you're saying. It's called:
https://en.wikipedia.org/wiki/Object_slicing
. Clearly a footgun in c++. You have to return a pointer to something that is not locally allocated.
Comments
No comments yet.
Better HN