Add an overload for aligned deletes which just calls the normal operator delete
This commit is contained in:
parent
f2cc797599
commit
f71ccde833
@ -20,6 +20,7 @@ void raw_free(void*);
|
||||
|
||||
void* operator new(usize size, const std::nothrow_t&) noexcept;
|
||||
void* operator new[](usize size, const std::nothrow_t&) noexcept;
|
||||
void operator delete(void* ptr, usize size, std::align_val_t alignment) noexcept;
|
||||
|
||||
template <typename T, class... Args> [[nodiscard]] Result<T*> make(Args... args)
|
||||
{
|
||||
|
@ -22,4 +22,9 @@ void raw_free(void* ptr)
|
||||
#else
|
||||
return free(ptr);
|
||||
#endif
|
||||
}
|
||||
|
||||
void operator delete(void* ptr, usize size, std::align_val_t) noexcept
|
||||
{
|
||||
operator delete(ptr, size);
|
||||
}
|
Loading…
Reference in New Issue
Block a user