Smaller compile fixes for the new opaque serialization.

Also remove the non-existing clone function for EntrypyVals - which now
can just use serialization :)
This commit is contained in:
Johanna Amann 2019-06-17 14:48:02 -07:00
parent a50b06d6c1
commit 618f0802f4
8 changed files with 21 additions and 29 deletions

View file

@ -543,7 +543,7 @@ std::unique_ptr<BitVector> BitVector::Unserialize(const broker::data& data)
bv->bits.push_back(*x);
}
return std::move(bv);
return bv;
}
BitVector::size_type BitVector::lowest_bit(block_type block)

View file

@ -70,7 +70,7 @@ std::unique_ptr<BloomFilter> BloomFilter::Unserialize(const broker::data& data)
return nullptr;
bf->hasher = hasher_.release();
return std::move(bf);
return bf;
}
size_t BasicBloomFilter::M(double fp, size_t capacity)

View file

@ -234,7 +234,7 @@ std::unique_ptr<CardinalityCounter> CardinalityCounter::Unserialize(const broker
cc->buckets.push_back(*x);
}
return std::move(cc);
return cc;
}
/**

View file

@ -179,7 +179,7 @@ std::unique_ptr<CounterVector> CounterVector::Unserialize(const broker::data& da
auto cv = std::unique_ptr<CounterVector>(new CounterVector());
cv->width = *width;
cv->bits = bits.release();
return std::move(cv);
return cv;
}

View file

@ -84,7 +84,7 @@ std::unique_ptr<Hasher> Hasher::Unserialize(const broker::data& data)
// their own. They reconstruct all their information from their
// constructors' arguments.
return std::move(hasher);
return hasher;
}
UHF::UHF()