refactor(miscellaneous): replace TSynthThreeWay with the function version

This commit is contained in:
2022-04-30 19:27:25 +08:00
parent 38902eb779
commit 7aadebba70
3 changed files with 18 additions and 77 deletions

View File

@ -501,7 +501,7 @@ struct TTupleThreeWay<R, TIndexSequence<I, Indices...>>
template <typename LHSTupleType, typename RHSTupleType>
static constexpr R F(const LHSTupleType& LHS, const RHSTupleType& RHS)
{
auto Result = TSynthThreeWay{}(LHS.template GetValue<I>(), RHS.template GetValue<I>());
auto Result = SynthThreeWayCompare(LHS.template GetValue<I>(), RHS.template GetValue<I>());
if (Result != 0) return Result;
return TTupleThreeWay<R, TIndexSequence<Indices...>>::F(LHS, RHS);
}