This is a discussion on Resource Management - Files within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by laserlight That depends on whether RAII is the only thing that you are trying to cut Yeah, ...
True that, but was it worth time investigating in? It hardly seems like a thing a newbie would need.
Custom deleters are hardly things that a newbie would need. Is it worth time investigating them? In my opinion, this depends on the path of learning that the newbie wishes to take. Seeing that darren78 started thinking about files, thinking about databases is along similiar lines.Originally Posted by Elysia
But then it becomes a question of what is better - custom RAII wrappers or just custom deleters? Since custom deleters usually provide less work, they're more newbie friendly and integrates well with the STL.