diff --git a/dbms/include/DB/Core/NamesAndTypes.h b/dbms/include/DB/Core/NamesAndTypes.h index b304fcc0531..af6f00323a0 100644 --- a/dbms/include/DB/Core/NamesAndTypes.h +++ b/dbms/include/DB/Core/NamesAndTypes.h @@ -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