diff --git a/mozilla/xpcom/ds/nsCppSharedAllocator.h b/mozilla/xpcom/ds/nsCppSharedAllocator.h index f705f6f489b..c84fdb4ec21 100644 --- a/mozilla/xpcom/ds/nsCppSharedAllocator.h +++ b/mozilla/xpcom/ds/nsCppSharedAllocator.h @@ -3,6 +3,7 @@ #include "nsIAllocator.h" // for |nsAllocator| #include "nscore.h" // for |NS_XXX_CAST| +#include // to allow placement |new| // under Metrowerks (Mac), we don't have autoconf yet @@ -72,18 +73,11 @@ class nsCppSharedAllocator nsAllocator::Free(p); } -#if 0 - /* - Hmmm. Some platforms don't seem to have placement |new|. I'll comment this out - temporarily until I can come up with a fix. - */ - void construct( pointer p, const T& val ) { new (p) T(val); } -#endif void destroy( pointer p )