[refactor]use clear concept to replace std::enable_if_t (#22801)

---------

Signed-off-by: flynn <fenglv15@mails.ucas.ac.cn>
This commit is contained in:
flynn
2023-08-12 15:10:30 +08:00
committed by GitHub
parent 2b81553879
commit 4e880288c6
17 changed files with 112 additions and 91 deletions

View File

@ -182,7 +182,8 @@ private:
return true;
}
template <typename T, typename... Ts, std::enable_if_t<(sizeof...(Ts) > 0), int> = 0>
template <typename T, typename... Ts>
requires(sizeof...(Ts) > 0)
static bool _execute_internal(ColumnArrayMutableData& dst, ColumnArrayExecutionDatas datas,
std::vector<bool>& col_const, int start_row, int end_row) {
return _execute_internal<T>(dst, datas, col_const, start_row, end_row) ||
@ -190,4 +191,4 @@ private:
}
};
} // namespace doris::vectorized
} // namespace doris::vectorized