This commit is contained in:
Michael Kolupaev 2014-07-10 12:19:22 +04:00
commit dda1395dba

View File

@ -26,7 +26,7 @@ struct NameAndTypePair
bool operator<(const NameAndTypePair & rhs) const
{
return std::tie(name, type->getName()) < std::tie(rhs.name, rhs.type->getName());
return std::make_pair(std::cref(name), type->getName()) < std::make_pair(std::cref(rhs.name), rhs.type->getName());
}
bool operator==(const NameAndTypePair & rhs) const