![]() Then add theĬheck to your operator new and throw bad_alloc*/ ![]() See if the memory is successfully allocated. See what happens if your operator new does not test to The one in NewHandler.cpp to run out of memory and Modify NoMemory.cpp so that it contains an array of intĪnd so that it actually allocates memory instead of ![]() I found this interesting exercise in Bruce Eckel's Thinking in C++, 2nd ed., Vol.1 in Chapter 13: /*13.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |