Exceptions
Team LiB
Previous Section Next Section

Exceptions

The in-place form of operator new



void* T::operator new(size_t, void* p) { return p; }



does not need a corresponding operator delete because there is no real allocation going on. All compilers we tested issue no spurious warnings concerning the absence of void T::operator delete(void*, size_t, void*).

    Team LiB
    Previous Section Next Section