Adding swap() for GenericMember

This commit is contained in:
Milo Yip
2019-02-08 11:39:25 +08:00
parent 0739a3e88b
commit b94c2a1203
2 changed files with 7 additions and 4 deletions

View File

@@ -17,10 +17,7 @@ static void printIt(const Value &doc) {
}
struct NameComparator {
bool operator()(
const GenericMember<UTF8<>, MemoryPoolAllocator<> > &lhs,
const GenericMember<UTF8<>, MemoryPoolAllocator<> > &rhs) const
{
bool operator()(const Value::Member &lhs, const Value::Member &rhs) const {
return (strcmp(lhs.name.GetString(), rhs.name.GetString()) < 0);
}
};