commit | 4c5832a0be947baf786e9a7185634bace3ac8382 | [log] [tgz] |
---|---|---|
author | Kevin Grant <kbradleygrant@gmail.com> | Sat Feb 14 20:53:35 2015 -0800 |
committer | Christopher Dunn <cdunn2001@gmail.com> | Sun Feb 15 02:38:31 2015 -0600 |
tree | cb56198c2956e2913cf9dc98756b6e9c32e7fc84 | |
parent | 8ba98759625ca528a73a8d37c5cdad34e7d21bc3 [diff] |
Fix bug in ValueIteratorBase::operator-
diff --git a/include/json/value.h b/include/json/value.h index 0c507a3..62a323b 100644 --- a/include/json/value.h +++ b/include/json/value.h
@@ -946,7 +946,7 @@ 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