16#ifdef ENABLE_CUSTOM_OPERATOR_NEW
18operator new(
size_t size)
throw(std::bad_alloc) {
21 throw std::bad_alloc();
23 void* p = malloc(size);
25 throw std::bad_alloc();
31operator delete(
void* p)
throw() {
size_t throw_size_on_new
The allocation size that triggers an exception in the special operator new.
bool force_throw_on_new
Switch to enable the use of special operator new.
Defines the logger used by the top-level component of kea-lfc.
Enable the use of special operator new that throws for testing.