From 040f9bb99e710e9176e06fe103e321201b62ac89 Mon Sep 17 00:00:00 2001 From: J Reece Wilson Date: Tue, 7 May 2024 05:12:46 +0100 Subject: [PATCH] [*] Clang wont compile --- Include/auROXTL/auMemoryModel.hpp | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Include/auROXTL/auMemoryModel.hpp b/Include/auROXTL/auMemoryModel.hpp index 1af9bd0..80d28a4 100644 --- a/Include/auROXTL/auMemoryModel.hpp +++ b/Include/auROXTL/auMemoryModel.hpp @@ -377,6 +377,12 @@ namespace Aurora::Memory this->deallocate_object(p); } + + template + inline constexpr bool operator==(const Aurora::Memory::BaseAuroraRuntimeAllocator &rhs) noexcept + { + return true; + } }; template @@ -392,8 +398,15 @@ namespace Aurora::Memory } template -inline constexpr bool operator==(Aurora::Memory::BaseAuroraRuntimeAllocator lhs, - Aurora::Memory::BaseAuroraRuntimeAllocator rhs) noexcept +inline constexpr bool operator==(const Aurora::Memory::BaseAuroraRuntimeAllocator &lhs, + const Aurora::Memory::BaseAuroraRuntimeAllocator &rhs) noexcept { return true; -} \ No newline at end of file +} + +template +inline constexpr bool operator!=(const Aurora::Memory::BaseAuroraRuntimeAllocator &lhs, + const Aurora::Memory::BaseAuroraRuntimeAllocator &rhs) noexcept +{ + return false; +}