Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void * operator new(size_t size) _THROW1(_STD bad_alloc)
- { // try to allocate size bytes
- void *p;
- while ((p = malloc(size)) == 0)
- if (_callnewh(size) == 0)
- { // report no memory
- static const std::bad_alloc nomem;
- _RAISE(nomem);
- }
- return (p);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement