News for hackers. Stuff that matters.
Re:“Modern” C++ Lamentations by MereInterest on Friday December 28, 2018 @05:48PM (#18780117)
It feels like that goes with your no exceptions policy. If you use exceptions (which is a different argument), then the return point is not necessarily clear. A unique_ptr makes sure that the object is correctly deleted, even in the case of error conditions.

The compiler knows where the lifetime ends. Why do the computer's work for it?

There are no comments on this comment yet.