]> git.saurik.com Git - apple/security.git/blobdiff - cdsa/cdsa_utilities/cssmalloc.h
Security-163.tar.gz
[apple/security.git] / cdsa / cdsa_utilities / cssmalloc.h
index 5fd3d636a90df165e1e26bbcd3e6739243ae7377..18bd509745919130f7915693eac50de6d5b96477 100644 (file)
@@ -158,9 +158,13 @@ private:
 //
 // Global C++ allocation hooks to use CssmAllocators
 //
-inline void *operator new (size_t size, CssmAllocator &allocator) throw(std::bad_alloc)
+inline void *operator new (size_t size, CssmAllocator &allocator) throw (std::bad_alloc)
 { return allocator.malloc(size); }
 
+inline void *operator new[] (size_t size, CssmAllocator &allocator) throw (std::bad_alloc)
+{ return allocator.malloc(size); }
+
+
 //
 // You'd think that this is operator delete(const T *, CssmAllocator &), but you'd
 // be wrong. Specialized operator delete is only called during constructor cleanup.