Messages in this thread | | | From | "David Schwartz" <> | Subject | RE: C++ pushback | Date | Sun, 30 Apr 2006 13:55:02 -0700 |
| |
> The C++ standard does not allow an allocator to return NULL, it is > supposed to raise an exception. > > Jan
It is not that unusual for C++ projects to use no exceptions at all. They simply replace the default standardized allocators with their own. These allocators can do whatever you want when memory runs out, including waiting until more memory is available while acting to reduce memory usage in other parts of the program.
You are not forced to use exceptions if you don't want to. Personally, I don't like them, and I rarely use them, even in large C++ projects (hundreds of thousands of lines).
DS
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |