From 6873244169033ebb834dfd9cc0305046ce014934 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 7 Dec 2023 23:52:16 +0200 Subject: [PATCH] BAN: Move placement new to New.h I have no idea why they were defined in Move.h --- BAN/include/BAN/Move.h | 3 --- BAN/include/BAN/New.h | 3 +++ BAN/include/BAN/Variant.h | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/BAN/include/BAN/Move.h b/BAN/include/BAN/Move.h index 717ebfdca5..8652b2b627 100644 --- a/BAN/include/BAN/Move.h +++ b/BAN/include/BAN/Move.h @@ -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; } \ No newline at end of file diff --git a/BAN/include/BAN/New.h b/BAN/include/BAN/New.h index 3602fb30e8..57e5b32f91 100644 --- a/BAN/include/BAN/New.h +++ b/BAN/include/BAN/New.h @@ -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; } diff --git a/BAN/include/BAN/Variant.h b/BAN/include/BAN/Variant.h index 02651cce36..a7944bda9c 100644 --- a/BAN/include/BAN/Variant.h +++ b/BAN/include/BAN/Variant.h @@ -3,6 +3,7 @@ #include #include #include +#include #include