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

jason at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 8 20:06:00 GMT 2004


------- Additional Comments From jason at redhat dot com  2004-06-08 20:06 -------
Subject: Re:  No way to teach operator new anything about
 alignment requirements

On 8 Jun 2004 19:27:26 -0000, "ma1flfs at bath dot ac dot uk" <gcc-bugzilla@gcc.gnu.org> wrote:
> 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.

Feel free to propose an alternative solution.

Jason


-- 


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



More information about the Gcc-bugs mailing list