Hmmm... I thought that I could specify new foo() to return nil by going:
theFoo = new (nothrow) foo();
but that seems to not work. How do I get new to not throw?
Thanks,
Rick
> Hmmm... I thought that I could specify new foo() to return nil by going:
>
> theFoo = new (nothrow) foo();
>
> but that seems to not work. How do I get new to not throw?
Do you need to say
theFoo = new (std::nothrow) foo();
instead? Or was a "#include <new> ... using namespace std;" implied?

Signature
Ben Combee <bcombee@metrowerks.com>
CodeWarrior for Palm OS technical lead
Palm OS programming help at http://www.palmoswerks.com/