[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:
@@ -1,3 +1,4 @@
|
||||
#include <new>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <util/misc.h> // for checksum
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <new>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#include <new>
|
||||
#include <string.h>
|
||||
|
||||
#include <util/no_construct.h>
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user