A
Andy Venikov
Is there a way to change standard containers' behavior
to expect a 0 when allocation fails (same way you can
change operator new's behavior to return null by passing
std::nothrow) ?
In my environment I can't use exceptions. I can't use
standard allocators either (embedded, you get the picture).
I recompiled STLPort with _no_exceptions, but when my
allocator failed (returned 0) the whole thing crashed.
My guess is that recompiling with "no exceptions" did
not change the behavior and it still references 0.
Is there a standard way to do it?
Thank you,
Andy.
to expect a 0 when allocation fails (same way you can
change operator new's behavior to return null by passing
std::nothrow) ?
In my environment I can't use exceptions. I can't use
standard allocators either (embedded, you get the picture).
I recompiled STLPort with _no_exceptions, but when my
allocator failed (returned 0) the whole thing crashed.
My guess is that recompiling with "no exceptions" did
not change the behavior and it still references 0.
Is there a standard way to do it?
Thank you,
Andy.