Make the indirection and dereference operators of iterator const

fixes #233
This commit is contained in:
Robert Marki committed 2016-04-13 13:49:53 +02:00
1 parent 170b70f082
commit 2197f5f0a6
3 files changed
+15 -4

No files matched your search

+2 -2
View File
@@ -7000,13 +7000,13 @@ class basic_json
}
/// return a reference to the value pointed to by the iterator
reference operator*()
reference operator*() const
{
return const_cast<reference>(base_iterator::operator*());
}
/// dereference the iterator
pointer operator->()
pointer operator->() const
{
return const_cast<pointer>(base_iterator::operator->());
}