From a257d957592ffec3c4d823956adaa43f20c377a4 Mon Sep 17 00:00:00 2001 From: Braden McDorman Date: Sun, 14 Sep 2014 02:31:23 -0500 Subject: [PATCH] Added arrow operator to ValueIterator and ValueConstIterator --- include/json/value.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/json/value.h b/include/json/value.h index 00e32c98a..ec3d706be 100644 --- a/include/json/value.h +++ b/include/json/value.h @@ -1017,6 +1017,8 @@ class JSON_API ValueConstIterator : public ValueIteratorBase { } reference operator*() const { return deref(); } + + pointer operator->() const { return &deref(); } }; /** \brief Iterator for object and array value. @@ -1071,6 +1073,8 @@ class JSON_API ValueIterator : public ValueIteratorBase { } reference operator*() const { return deref(); } + + pointer operator->() const { return &deref(); } }; } // namespace Json