summaryrefslogtreecommitdiff
path: root/deimos/core/allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'deimos/core/allocator.h')
-rw-r--r--deimos/core/allocator.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/deimos/core/allocator.h b/deimos/core/allocator.h
index e65f316..8f00610 100644
--- a/deimos/core/allocator.h
+++ b/deimos/core/allocator.h
@@ -40,7 +40,7 @@ public:
constexpr IAllocator* allocator() const { return m_allocator; }
[[nodiscard]]
- constexpr gsl::owner<void*> Allocate(
+ constexpr void* Allocate(
int64_t new_size,
const SourceLocation& source_location = {})
{
@@ -48,15 +48,15 @@ public:
}
[[nodiscard]]
- gsl::owner<void*> Reallocate(
- gsl::owner<void*> old_ptr, int64_t old_size, int64_t new_size,
+ void* Reallocate(
+ void* old_ptr, int64_t old_size, int64_t new_size,
const SourceLocation& source_location = {})
{
return m_allocator->Reallocate(old_ptr, old_size, new_size, m_scope, source_location);
}
constexpr void Free(
- gsl::owner<void*> old_ptr, int64_t old_size,
+ void* old_ptr, int64_t old_size,
const SourceLocation& source_location = {})
{
(void)m_allocator->Reallocate(old_ptr, old_size, 0, m_scope, source_location);