mirror of
https://github.com/nlohmann/json.git
synced 2024-11-27 16:49:02 +08:00
Fixed an error in the Custom data source
example. (#4335)
This commit is contained in:
parent
199dea11b1
commit
16b3d841d5
@ -385,7 +385,7 @@ struct MyIterator {
|
||||
using iterator_category = std::input_iterator_tag;
|
||||
|
||||
MyIterator& operator++() {
|
||||
MyContainer.advance();
|
||||
target->advance();
|
||||
return *this;
|
||||
}
|
||||
|
||||
@ -394,7 +394,7 @@ struct MyIterator {
|
||||
}
|
||||
|
||||
reference operator*() const {
|
||||
return target.get_current();
|
||||
return target->get_current();
|
||||
}
|
||||
|
||||
MyContainer* target = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user