Comment Comment by cjfd One can do lots of things with RAII. I once wrote some classes to generate xml. I used constructors to write opening tags and destructors to write the corresponding closing tags.... parent cjfd 3 years ago