Browse Source

Kernel: Add placement new[] operator

Sergey Bugaev 5 years ago
parent
commit
bf8dacf0c1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      AK/kmalloc.h

+ 5 - 0
AK/kmalloc.h

@@ -84,6 +84,11 @@ inline void* operator new(size_t, void* ptr)
 {
 {
     return ptr;
     return ptr;
 }
 }
+
+inline void* operator new[](size_t, void* ptr)
+{
+    return ptr;
+}
 #    endif
 #    endif
 
 
 #endif
 #endif