title: Can I run into problems when refactoring to RAII?
body: <p>I have an application with tons of new that really don't seem to be needed, instantiated objects are deleted a few lines later after use, in the same context (function).</p>
  
  <p>Is it safe to assume that I can change those <code>new</code> to stack allocations or are there special considerations I have to take?</p>
  
  <p>Those objects are relatively light, no big buffers or anything such.</p>
  
  <p>EDIT :</p>
  
  <p>Another point I've discovered is that the object deletion order is harder to control. You have to be more careful how things are created.</p>