From e8422002f84dc4313894a5b3136c44a9005081fd Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sat, 2 Nov 2024 20:45:02 -0500 Subject: Allocator deallocate is void rather than returning FudStatus. --- include/fud_allocator.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/fud_allocator.hpp') diff --git a/include/fud_allocator.hpp b/include/fud_allocator.hpp index e4078ac..9b90deb 100644 --- a/include/fud_allocator.hpp +++ b/include/fud_allocator.hpp @@ -32,7 +32,7 @@ class alignas(std::max_align_t) Allocator { virtual Result allocate(size_t bytes, size_t alignment = alignof(std::max_align_t)) = 0; - virtual FudStatus deallocate(std::byte* pointer, size_t bytes) = 0; + virtual void deallocate(std::byte* pointer, size_t bytes) = 0; virtual bool isEqual(const Allocator& rhs) const = 0; }; @@ -48,7 +48,7 @@ class FudAllocator : public Allocator { virtual Result allocate(size_t bytes, size_t alignment = alignof(std::max_align_t)) override; - virtual FudStatus deallocate(std::byte* pointer, size_t bytes) override; + virtual void deallocate(std::byte* pointer, size_t bytes) override; virtual bool isEqual(const Allocator& rhs) const override; }; @@ -61,7 +61,7 @@ class NullAllocator : public Allocator { virtual Result allocate(size_t bytes, size_t alignment = alignof(std::max_align_t)) override; - virtual FudStatus deallocate(std::byte* pointer, size_t bytes) override; + virtual void deallocate(std::byte* pointer, size_t bytes) override; virtual bool isEqual(const Allocator& rhs) const override; }; -- cgit v1.2.3