::operator new overload does not work anymore?
C++ always declared the possibility to redefine global memory allocator, redefining ::operator new
and ::operator delete
in global scope. Example operator_new has code for int
. This design considered, that program consists of many OBJ files, and linker includes our version of ::operator new to the final executable.