mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-08 09:27:50 +02:00
Merge pull request #41 from bmcdorman/feature-arrow_operator
Added arrow operator to ValueIterator and ValueConstIterator
This commit is contained in:
commit
b4357fa224
@ -1017,6 +1017,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
reference operator*() const { return deref(); }
|
reference operator*() const { return deref(); }
|
||||||
|
|
||||||
|
pointer operator->() const { return &deref(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
/** \brief Iterator for object and array value.
|
/** \brief Iterator for object and array value.
|
||||||
@ -1071,6 +1073,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
reference operator*() const { return deref(); }
|
reference operator*() const { return deref(); }
|
||||||
|
|
||||||
|
pointer operator->() const { return &deref(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Json
|
} // namespace Json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user