debug_allocator.h
4.13 KB
-
malloc_allocator.h: Fixed the construct function to call global placement new… · 58c95921
malloc_allocator.h: Fixed the construct function to call global placement new instead of assignment. 2004-03-24 Dhruv Matani <dhruvbird@gmx.net> * ext/malloc_allocator.h: Fixed the construct function to call global placement new instead of assignment. Added a check after the return from malloc to check whether returned pointer is NULL, and if so, throw std::bad_alloc(). * ext/debug_allocator.h: Added a check in the deallocate function to check whether the user has passed a NULL pointer or not. From-SVN: r79934
Dhruv Matani committed