This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: One question about operator new in libstdc++.


Shigang Zan <zanshigang@hotmail.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]