Fixed an error in the Custom data source example. (#4335)

This commit is contained in:
Philip Müller authored and GitHub committed 2024-04-08 21:11:25 +02:00
1 parent 199dea11b1
commit 16b3d841d5
1 file changed
+2 -2
+2 -2
View File
@@ -385,7 +385,7 @@ struct MyIterator {
using iterator_category = std::input_iterator_tag; using iterator_category = std::input_iterator_tag;
MyIterator& operator++() { MyIterator& operator++() {
MyContainer.advance(); target->advance();
return *this; return *this;
} }
@@ -394,7 +394,7 @@ struct MyIterator {
} }
reference operator*() const { reference operator*() const {
return target.get_current(); return target->get_current();
} }
MyContainer* target = nullptr; MyContainer* target = nullptr;