mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-14 01:47:54 +08:00
Fix bug in ValueIteratorBase::operator-
This commit is contained in:
parent
8ba9875962
commit
4c5832a0be
@ -946,7 +946,7 @@ public:
|
||||
bool operator!=(const SelfType& other) const { return !isEqual(other); }
|
||||
|
||||
difference_type operator-(const SelfType& other) const {
|
||||
return computeDistance(other);
|
||||
return other.computeDistance(*this);
|
||||
}
|
||||
|
||||
/// Return either the index or the member name of the referenced value as a
|
||||
|
Loading…
x
Reference in New Issue
Block a user