News for hackers. Stuff that matters.
Re:LLVM Programmer’s Manual by konstmonst on Friday July 22, 2016 @06:05AM (#12142676)
You are just using the worng pattern. Use Computation a; Computation b; use(a, b); Then if the computation aborts in b, then computation a will be cleaned up as intended.
Re:LLVM Programmer’s Manual by pjc50 on Friday July 22, 2016 @10:19AM (#12143643)
My second point is that with exceptions you can't guarantee the assignment of two objects, because the assignment operator can throw.
Re:LLVM Programmer’s Manual by plorkyeran on Friday July 22, 2016 @10:41AM (#12143794)
This was somewhat of a problem in C++03 because writing a copy assignment operator that can't fail is sometimes impossible, but I have never encountered a scenario where I was unable to make move assignment noexcept.