alloc/aligned/direct: deallocate should take a void pointer

This commit is contained in:
Danny Robson 2019-10-01 13:14:18 +10:00
parent 578a99a6ba
commit ccdc0b6807

View File

@ -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);
}