Fix a metadata corrupting bug. You can't use std::sort on a boost ptr_vector.

This commit is contained in:
JoelKatz
2012-12-08 11:15:37 -08:00
parent 78f6294832
commit bdfa1d03f8

View File

@@ -943,7 +943,7 @@ STArray* STArray::construct(SerializerIterator& sit, SField::ref field)
void STArray::sort(bool (*compare)(const STObject&, const STObject&))
{
std::sort(value.begin(), value.end(), compare);
value.sort(compare);
}
std::auto_ptr<STObject> STObject::parseJson(const Json::Value& object, SField::ref inName, int depth)