Fix bug in ValueIteratorBase::operator-

This commit is contained in:
Kevin Grant 2015-02-14 20:53:35 -08:00 committed by Christopher Dunn
parent 8ba9875962
commit 4c5832a0be

View File

@ -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