reverse sense for CPPTL too

This commit is contained in:
Christopher Dunn 2015-02-15 02:31:17 -06:00
parent 4c5832a0be
commit bd55164089

View File

@ -77,7 +77,7 @@ ValueIteratorBase::difference_type
ValueIteratorBase::computeDistance(const SelfType& other) const {
#ifndef JSON_VALUE_USE_INTERNAL_MAP
#ifdef JSON_USE_CPPTL_SMALLMAP
return current_ - other.current_;
return other.current_ - current_;
#else
// Iterator for null value are initialized using the default
// constructor, which initialize current_ to the default