3 ms·
have fun trying to globally override new and delete in C++ (hint: there is no way to do this)
by voldacar 6y ago
have fun trying to globally override new and delete in C++
(hint: there is no way to do this)
- cycloptic 6y agoAre you sure? https://en.cppreference.com/w/cpp/memory/new/operator_new#Global_replacements https://en.cppreference.com/w/cpp/memory/new/operator_new#Gl... You don't need to do this if you're using allocators.