souaaz
BAN USER
Comments (3)
Reputation 10
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
It is good practice to throw and catch exception in destructors. You better catch or else they propagate and may terminate a running program.
Check Meyers's More Effective C++ for explanation.
Exception are common in constructors as well but be careful when to use them since they are expensive.
Comment hidden because of low score. Click to expand.
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
When you want to use your own memory management instead of the default one.
- souaaz May 10, 2010