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:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user