Overloading the new and delete operator globally

后端 未结 0 786
傲寒
傲寒 2021-01-06 12:53

I was trying to overload the new and delete operator globally. The code is:

void * operator new(size_t s)
    {
        cout<<"\\nOverloaded new op         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题