We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ba9875 commit 4c5832aCopy full SHA for 4c5832a
1 file changed
include/json/value.h
@@ -946,7 +946,7 @@ class JSON_API ValueIteratorBase {
946
bool operator!=(const SelfType& other) const { return !isEqual(other); }
947
948
difference_type operator-(const SelfType& other) const {
949
- return computeDistance(other);
+ return other.computeDistance(*this);
950
}
951
952
/// Return either the index or the member name of the referenced value as a
0 commit comments