From ccdc0b6807acb334eba2b3c94a4b95b5b28d4204 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 1 Oct 2019 13:14:18 +1000 Subject: [PATCH] alloc/aligned/direct: deallocate should take a void pointer --- alloc/aligned/direct.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alloc/aligned/direct.hpp b/alloc/aligned/direct.hpp index 4bafe19a..d6959615 100644 --- a/alloc/aligned/direct.hpp +++ b/alloc/aligned/direct.hpp @@ -47,7 +47,7 @@ namespace cruft::alloc::aligned { //--------------------------------------------------------------------- - auto deallocate (u08 *ptr, std::size_t bytes, std::size_t alignment) + auto deallocate (void *ptr, std::size_t bytes, std::size_t alignment) { (void)alignment; return m_successor.deallocate (ptr, bytes, m_alignment); @@ -55,7 +55,7 @@ namespace cruft::alloc::aligned { //--------------------------------------------------------------------- - auto deallocate (u08 *ptr, std::size_t bytes) + auto deallocate (void *ptr, std::size_t bytes) { return m_successor.deallocate (ptr, bytes, m_alignment); }