Skip to content

Commit 16b3d84

Browse files
Fixed an error in the Custom data source example. (#4335)
1 parent 199dea1 commit 16b3d84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ struct MyIterator {
385385
using iterator_category = std::input_iterator_tag;
386386
387387
MyIterator& operator++() {
388-
MyContainer.advance();
388+
target->advance();
389389
return *this;
390390
}
391391
@@ -394,7 +394,7 @@ struct MyIterator {
394394
}
395395
396396
reference operator*() const {
397-
return target.get_current();
397+
return target->get_current();
398398
}
399399
400400
MyContainer* target = nullptr;

0 commit comments

Comments
 (0)