[PATCH] Fallback to operator new for MSVC compatibility

Richard Smith richard at metafoo.co.uk
Tue May 28 16:50:00 PDT 2013


On Tue, May 28, 2013 at 4:48 PM, Sebastian Redl <
sebastian.redl at getdesigned.at> wrote:

>
> On 29.05.2013, at 00:07, Richard Smith wrote:
>
> > What does MSVC think about:
> >
> > void *operator new(unsigned int size, arbitrary_t);
> > void operator delete[](unsigned int size, arbitrary_t) = delete;
>
> It thinks this isn't C++ - MSVC doesn't support defaulted and deleted
> functions yet.


:( OK, if you remove the "= delete", does it synthesize a call to that
function (if S() throws an exception)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130528/0e36cffb/attachment.html>


More information about the cfe-commits mailing list