fix std exchange, fix host mem unused funcs

This commit is contained in:
lizzie 2026-05-06 17:01:54 +00:00
parent 1f34cb73cf
commit 2c45a56603
2 changed files with 19 additions and 8 deletions

View file

@ -39,7 +39,8 @@ public:
VirtualBuffer& operator=(const VirtualBuffer&) = delete;
VirtualBuffer(VirtualBuffer&& other) noexcept
: alloc_size{std::exchange(other.alloc_size, 0)}, base_ptr{std::exchange(other.base_ptr), nullptr}
: alloc_size{std::exchange(other.alloc_size, 0)}
, base_ptr{std::exchange(other.base_ptr, nullptr)}
{}
VirtualBuffer& operator=(VirtualBuffer&& other) noexcept {