[kernel] Remove placement-new declaration from memory.h.cog

Finishing the trend of using `#include <new>` to define new, get rid of
the last bits of custom-declared operator new.
This commit is contained in:
Justin C. Miller
2022-01-27 22:04:06 -08:00
parent fd25d3babc
commit 42d7f4245d
5 changed files with 4 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
#include <new>
#include <stddef.h>
#include <stdint.h>
#include <util/misc.h> // for checksum

View File

@@ -1,3 +1,4 @@
#include <new>
#include <stdint.h>
#include <string.h>

View File

@@ -1,3 +1,4 @@
#include <new>
#include <string.h>
#include <util/no_construct.h>

View File

@@ -13,8 +13,6 @@ namespace bootproto {
struct args;
}
void * operator new (size_t, void *p) noexcept;
/// Allocate from the default allocator.
/// \arg size The size in bytes requested
/// \returns A pointer to the newly allocated memory,

View File

@@ -2,6 +2,7 @@
/// \file vector.h
/// Definition of a simple dynamic vector collection for use in kernel space
#include <new>
#include <assert.h>
#include <string.h>
#include <utility>