r/cpp • u/stanimirov • Jul 04 '18
Be Mindful with Compiler-Generated Move Constructors
https://ibob.github.io/blog/2018/07/03/compiler-generated-move/
89
Upvotes
r/cpp • u/stanimirov • Jul 04 '18
View all comments
Show parent comment
2
u/meneldal2 Jul 05 '18
Well in this paper he proposes to terminate on contract violations (which are the main case where you'd want to terminate on throw), and on allocation failure (another common case for that). Actually outside of this there are very few exceptions, which are basically for opening files and the like and this I can live with.