diff --git a/alloc/raw/aligned/foreign.hpp b/alloc/raw/aligned/foreign.hpp index dec13839..93ad2dbd 100644 --- a/alloc/raw/aligned/foreign.hpp +++ b/alloc/raw/aligned/foreign.hpp @@ -70,7 +70,8 @@ namespace cruft::alloc::raw::aligned { cruft::view allocate (std::size_t bytes) { - return m_successor.allocate (bytes); + auto res = m_successor.allocate (bytes); + return { res.begin () + m_offset, bytes }; }