Anurag Shukla
A man who never makes mistake is the man who never does anything! Theodre Rosvelt!
It depends on you. If you can recover from a lack of memory and you are worried they might happen, feel free to do it.
Most probably you have an error in your code (a dangling pointer perhaps) that is completely unrelated to exceptions thrown by operator new or lack of memory.In some cases, if I does not use try{} catch{} for new and due to some reason object does not allocated and when I destroy object it gives segmentation fault.
Bookmarks