mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
NamesAndTypes looks a tiny little bit better. [#METR-2807]
This commit is contained in:
parent
8f516a4b19
commit
482e0c496c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user