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

That isn't a consequence of exceptions, it is a consequence of the fact that your move can fail and that std::vector has to maintain a sane state in the case of an error. You could write a bad::vector that just clears its contents in case of an error and it could use a throwing move just fine.



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

Search: