NamesAndTypes looks a tiny little bit better. [#METR-2807]

This commit is contained in:
Michael Kolupaev 2014-07-11 17:13:03 +04:00
parent 8f516a4b19
commit 482e0c496c

View File

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