Y
Hacker News
new
|
ask
|
show
|
jobs
by
jstimpfle
1422 days ago
const doesn't make a difference in this case. It's about the passed-by-reference object being destroyed after the function returns. That is because the object was passed as a temporary.