[Development] QtCore missing check for memory allocation

Thiago Macieira thiago.macieira at intel.com
Tue Mar 10 19:19:47 CET 2015


On Tuesday 10 March 2015 10:10:46 Alex Montgomery wrote:
> > Note that we're talking about a standard violation in the first place. The
> > standard says you can replace operator new, so if MSVC doesn't allow you
> > to do it properly, then you can throw the standard out of the window. If
> > an inline operator new (for MSVC only) solved the problem, it would be
> > ok.
> 
> As in, you'd be ok with individuals locally hacking Qt to work this
> way, or as in you'd be ok with including a mechanism in a future
> version of Qt to replace new and delete that (on Windows only) used
> this methodology?

I'm ok with adding small patches that would ease your local maintenance 
burden, so long as they don't increase ours unduly and as long as they don't 
have any performance impact by default.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list