From bf8dacf0c196eb282f3f0055746da158179b13f3 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 18 Feb 2020 11:42:49 +0300 Subject: [PATCH] Kernel: Add placement new[] operator --- AK/kmalloc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/kmalloc.h b/AK/kmalloc.h index 634aaf10cc..6f6375e71e 100644 --- a/AK/kmalloc.h +++ b/AK/kmalloc.h @@ -84,6 +84,11 @@ inline void* operator new(size_t, void* ptr) { return ptr; } + +inline void* operator new[](size_t, void* ptr) +{ + return ptr; +} # endif #endif