From 540db3b0526b85837dc0a866271d218314be7ad7 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 00e32c9..3f8f211 100644 --- a/include/json/value.h +++ b/include/json/value.h @@ -1017,6 +1017,8 @@ public: } reference operator*() const { return deref(); } + + pointer operator->() const { return &deref(); } }; /** \brief Iterator for object and array value. @@ -1071,6 +1073,8 @@ public: } reference operator*() const { return deref(); } + + pointer operator->() const { return &deref(); } }; } // namespace Json