What will happen if caught exception when new a object? For example:
ClassTest* ptr = 0;
try
{
ptr = new ClassTest;
}
catch(...)
{
}
if the constructor of ClassTest throw exception, what will happen?
will ptr == 0 ?
some memory leak?