How should I write ISO C++ Standard conformant custom new and delete operators?
Part I This C++ FAQ entry explained why one might want to overload new and delete operators for one’s own class. This present FAQ tries to explain how one does so in a standard-conforming way. Implementing a custom new operator The C++ standard (ยง18.4.1.1) defines operator new as: void* operator new (std::size_t size) throw (std::bad_alloc); … Read more