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