Comment by locknitpicker
3 hours ago
> it is unlikely you will get a malloc failure
That assertion completely misses the point. The scenarios involving move constructors throwing exceptions involve objects being stuck in an inconsistent/zombie state. In fact, the whole point of a move constructors is to avoid having to allocate memory.
No comments yet
Contribute on Hacker News ↗