Commit 7eddf197 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

src: Fix Memchunks move ctor

parent d3475f5f
...@@ -90,7 +90,7 @@ template <typename Memchunk> struct Memchunks { ...@@ -90,7 +90,7 @@ template <typename Memchunk> struct Memchunks {
: pool(pool), head(nullptr), tail(nullptr), len(0) {} : pool(pool), head(nullptr), tail(nullptr), len(0) {}
Memchunks(const Memchunks &) = delete; Memchunks(const Memchunks &) = delete;
Memchunks(Memchunks &&other) 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 // keep other.pool
other.head = other.tail = nullptr; other.head = other.tail = nullptr;
other.len = 0; other.len = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment