JSON Stringifier fails with preserve insert order #819

This commit is contained in:
Aleksandar Fabijanic 2015-05-14 22:10:45 -05:00
parent 95a61b9844
commit 45ab455174

View File

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