N
Newsnet Customer
Hi,
consider this:
void test ()
{
A* anA = new A();
if (anA == 0){//handle situation}
}
Apparenly new versions of C++ throw a bad_alloc exception and the older
versions return a null pointer value. My question is, what should you test
for if you don't know which version of c++ your using?
sasas
consider this:
void test ()
{
A* anA = new A();
if (anA == 0){//handle situation}
}
Apparenly new versions of C++ throw a bad_alloc exception and the older
versions return a null pointer value. My question is, what should you test
for if you don't know which version of c++ your using?
sasas