BAN: Move placement new to New.h

I have no idea why they were defined in Move.h
This commit is contained in:
Bananymous 2023-12-07 23:52:16 +02:00
parent 805b4096e9
commit 6873244169
3 changed files with 4 additions and 3 deletions

View File

@ -27,6 +27,3 @@ namespace BAN
}
}
inline void* operator new(size_t, void* addr) { return addr; }
inline void* operator new[](size_t, void* addr) { return addr; }

View File

@ -16,3 +16,6 @@ namespace BAN
static constexpr void(&deallocator)(void*) = free;
#endif
}
inline void* operator new(size_t, void* addr) { return addr; }
inline void* operator new[](size_t, void* addr) { return addr; }

View File

@ -3,6 +3,7 @@
#include <BAN/Assert.h>
#include <BAN/Math.h>
#include <BAN/Move.h>
#include <BAN/New.h>
#include <string.h>