Hacker News new | past | comments | ask | show | jobs | submit login

The standard says that "Copy elision is <...> one of the two allowed forms of optimization, alongside allocation elision and extension,(since C++14) that can change observable side-effects"

I agree you have a valid point though. I'd be interested to know the committee's reasoning.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: