overloading new/delete

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Thu Mar 8 19:03:45 GMT 2007


Hi,

overloading new/delete seems to be different for msvc than for mingw. 
For mingw I need to use new/delete this way:

void* operator new(size_t size, int myVar);
void operator delete(void* ptr, size_t size);

but msvc (http://msdn2.microsoft.com/en-us/library/cxdxz3x6.aspx) needs 
this:

void* operator new(size_t size, int myVar);
void operator delete(void* ptr, int myVar);


Is this correct? Any idea how to fix this (for example in 
khtml/rendering/render_object.cpp/.h)?


Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070308/9a4ca41b/attachment.sig>


More information about the kde-core-devel mailing list