Enable natural copies of the batch iterators without the need of the clone method (#4748)

- the synthesized copy constructor should do the appropriate job
This commit is contained in:
sriramch
2019-08-09 08:47:35 -07:00
committed by Jiaming Yuan
parent 19f9fd5de9
commit 198f3a6c4a
3 changed files with 1 additions and 16 deletions

View File

@@ -43,9 +43,6 @@ class SimpleBatchIteratorImpl : public BatchIteratorImpl<T> {
}
void operator++() override { page_ = nullptr; }
bool AtEnd() const override { return page_ == nullptr; }
SimpleBatchIteratorImpl* Clone() override {
return new SimpleBatchIteratorImpl(*this);
}
private:
T* page_{nullptr};