1
0
Fork 1
forked from suyu/suyu

Merge pull request #6723 from lioncash/shader

object_pool: Add missing return in Chunk move assignment operator
This commit is contained in:
Rodrigo Locatti 2021-07-26 06:01:21 -03:00 committed by GitHub
commit b2b3fcdccd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,6 +63,7 @@ private:
used_objects = std::exchange(rhs.used_objects, 0); used_objects = std::exchange(rhs.used_objects, 0);
num_objects = std::exchange(rhs.num_objects, 0); num_objects = std::exchange(rhs.num_objects, 0);
storage = std::move(rhs.storage); storage = std::move(rhs.storage);
return *this;
} }
Chunk(Chunk&& rhs) noexcept Chunk(Chunk&& rhs) noexcept