This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: operator new/delete forwarding


On Nov 9, 2006, at 2:48 PM, Howard Hinnant wrote:

Imho http://www.open-std.org/jtc1/sc22/wg21/docs/lwg- defects.html#298 got the wrong answer (it looks consistent but actually simply propagates a mistake from C++98). The (nothrow)[] versions must forward to the [] versions, not the (nothrow) versions. Else delete[] is vulnerable to not being able to handle a pointer from new(nothrow)[] (and it must handle those pointers).

Ok, I'm writing a brief paper on this issue in hopes of clarifying and motivating my recommended changes:


http://home.twcny.rr.com/hinnant/cpp_extensions/issue206.html

Comments, suggestions, or additional data welcome. I'm aiming at the Jan. 12, 2007 mid-meeting mailing deadline.

-Howard


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