[LLVMdev] Small patch for silencing delete warning

Cédric Venet cedric.venet at student.ecp.fr
Mon Apr 14 13:07:42 PDT 2008


Very small patch which take care of a lot of warning (at least on VS).

I assumed that:
  void *operator new(size_t s, unsigned) {
    return ::operator new(s);
Is a placeholder for a future optimization on storing User (I think I have
seen something like this on the list). Else completely removing the
new/delete stuff in class User would be best



Ps: Ref
C++ coding standards, item 45
ISO/IEC 14882:2003(E), §5.3.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: delete-warning-14-04-2008.patch
Type: application/octet-stream
Size: 606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080414/06264ee1/attachment.obj>

More information about the llvm-dev mailing list