News for hackers. Stuff that matters.
Re:Rule of Zero (C++) by bowyakka on Saturday November 24, 2012 @03:19PM (#4826324)
Doesn't this amount to the same thing ?
Re:Rule of Zero (C++) by zem on Saturday November 24, 2012 @07:59PM (#4826963)
it accomplishes the same purpose, but the filehandle gets closed explicitly, not when it goes out of scope and its destructor gets called.