News for hackers. Stuff that matters.
Re:“Unexplainable” core dump (2011) by aw1621107 on Tuesday January 03, 2023 @05:06PM (#34238789)
There are non-throwing operator new overloads that can return nullptr, but I'm not sure if those are a relatively recent development. Did the non-throwing operator new overloads not exist at the time?
Re:“Unexplainable” core dump (2011) by logicchop on Tuesday January 03, 2023 @05:14PM (#34238895)
Hard to say. Most of the uses probably predated the custom operator new and so nobody thought about it. Not to mention the places you cannot sneak into to switch to std::nothrow.
Re:“Unexplainable” core dump (2011) by aw1621107 on Wednesday January 04, 2023 @12:12AM (#34242270)
Ah, that's fair. Didn't think of code that couldn't be changed.
Re:“Unexplainable” core dump (2011) by bregma on Tuesday January 03, 2023 @07:52PM (#34240366)
`new (nothrow)` was in C++98 and in ARM C++ before that.
Re:“Unexplainable” core dump (2011) by aw1621107 on Wednesday January 04, 2023 @12:12AM (#34242267)
Ah, I didn't know that. Thanks!