This is the mail archive of the gcc-bugs@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]

[Bug c++/15795] No way to teach operator new anything about alignment requirements


------- Additional Comments From ma1flfs at bath dot ac dot uk  2004-06-08 19:27 -------
Subject: Re:  No way to teach operator new anything about alignment requirements

On Tuesday 08 June 2004 19:04, jason at redhat dot com wrote:
> Because you also need to override operator new for Foo, and any other type
> which requires alignment greater than that provided by malloc.

That's my point. Doing this would suck very much... And is sometimes not 
possible. Think template classes, STL or Qt are good examples.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15795


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