From 6d6bef1b040e363d4c99706ca699d4a53d8f262e Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 27 Mar 2023 03:38:06 +0300 Subject: [PATCH] BAN: move placement new declaration to Move.h --- BAN/include/BAN/Memory.h | 5 +---- BAN/include/BAN/Move.h | 7 ++++++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/BAN/include/BAN/Memory.h b/BAN/include/BAN/Memory.h index 0d9c1f22..127ba944 100644 --- a/BAN/include/BAN/Memory.h +++ b/BAN/include/BAN/Memory.h @@ -131,7 +131,4 @@ namespace BAN T* m_pointer = nullptr; }; -} - -inline void* operator new(size_t, void* addr) { return addr; } -inline void* operator new[](size_t, void* addr) { return addr; } +} \ No newline at end of file diff --git a/BAN/include/BAN/Move.h b/BAN/include/BAN/Move.h index a96e2777..717ebfdc 100644 --- a/BAN/include/BAN/Move.h +++ b/BAN/include/BAN/Move.h @@ -2,6 +2,8 @@ #include +#include + namespace BAN { @@ -24,4 +26,7 @@ namespace BAN return static_cast(arg); } -} \ No newline at end of file +} + +inline void* operator new(size_t, void* addr) { return addr; } +inline void* operator new[](size_t, void* addr) { return addr; } \ No newline at end of file