Shigang Zan <zanshigang@xxxxxxxxxxx> writes: > Can I have a solution to override all classes' operator new and > delete? or we can only override for one class? This is not a question about gcc. It is a question about the C++ language. As far as I know there is no way to override the global operator new. Ian