JSON Stringifier fails with preserve insert order #819

This commit is contained in:
Aleksandar Fabijanic 2015-05-14 22:12:52 -05:00
parent 60b1431539
commit 3553a86d60

View File

@ -107,7 +107,7 @@ const std::string& Object::getKey(KeyPtrList::const_iterator& iter) const
ValueMap::const_iterator end = _values.end(); ValueMap::const_iterator end = _values.end();
for (; it != end; ++it) for (; it != end; ++it)
{ {
if (&it->second == *iter) return it->first; if (it->second == **iter) return it->first;
} }
throw NotFoundException((*iter)->convert<std::string>()); throw NotFoundException((*iter)->convert<std::string>());