src: Fix Memchunks move ctor
This commit is contained in:
parent
d3475f5fe2
commit
7eddf1975e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue