Skip to content
Snippets Groups Projects
Commit b5336e8e authored by Yannik Müller's avatar Yannik Müller
Browse files

Fixed call to deleted constructor MemoryBuffer

parent 6b7b03a8
Branches
Tags
No related merge requests found
......@@ -89,7 +89,7 @@ void MemoryBuffer::memory_copy(MemoryBuffer& dst, MemoryBuffer& src){
}
MemoryBuffer MemoryBuffer::wrap(void* p, std::size_t len, AddressSpace::ID addr_space_id){
return MemoryBuffer(p, len, addr_space_id);
return {p, len, addr_space_id};
}
void MemoryBuffer::fill(){
......
......@@ -165,8 +165,8 @@ class MemoryBuffer{
MemoryBuffer(const MemoryBuffer& other) = delete;
MemoryBuffer& operator=(const MemoryBuffer& other) = delete;
MemoryBuffer(MemoryBuffer&& other) = delete;
MemoryBuffer& operator=(const MemoryBuffer&& other) = delete;
MemoryBuffer(MemoryBuffer&& other) = default;
MemoryBuffer& operator=(MemoryBuffer&& other) = default;
/* Wrap an existing pointer into a memory buffer. We do not know the allocator
* and hence have to ingore it. This is acceptable since the allocator is not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment