src: Fix Memchunks move ctor

This commit is contained in:
Tatsuhiro Tsujikawa 2015-10-23 01:03:43 +09:00
parent d3475f5fe2
commit 7eddf1975e
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ template <typename Memchunk> struct Memchunks {
: pool(pool), head(nullptr), tail(nullptr), len(0) {}
Memchunks(const Memchunks &) = delete;
Memchunks(Memchunks &&other)
: pool(other.pool), head(other.head), tail(other.head), len(other.len) {
: pool(other.pool), head(other.head), tail(other.tail), len(other.len) {
// keep other.pool
other.head = other.tail = nullptr;
other.len = 0;