From c258b9e6cec08983a14e9b7d9cff5a2d5933b6ef Mon Sep 17 00:00:00 2001 From: Kevin Grant Date: Sat, 14 Feb 2015 20:53:35 -0800 Subject: [PATCH] Fix bug in ValueIteratorBase::operator- --- include/json/value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/json/value.h b/include/json/value.h index 0c507a34d..62a323b08 100644 --- a/include/json/value.h +++ b/include/json/value.h @@ -946,7 +946,7 @@ class JSON_API ValueIteratorBase { 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