We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Json::ValueIterator
*
->
1 parent 5c4219b commit fe9663eCopy full SHA for fe9663e
include/json/value.h
@@ -918,8 +918,8 @@ class JSON_API ValueIterator : public ValueIteratorBase {
918
* because the returned references/pointers can be used
919
* to change state of the base class.
920
*/
921
- reference operator*() { return deref(); }
922
- pointer operator->() { return &deref(); }
+ reference operator*() const { return const_cast<reference>(deref()); }
+ pointer operator->() const { return const_cast<pointer>(&deref()); }
923
};
924
925
inline void swap(Value& a, Value& b) { a.swap(b); }
0 commit comments