Skip to content

Commit

Permalink
[BugFix] Fix the compile problem when using clang-19 (StarRocks#55611)
Browse files Browse the repository at this point in the history
Signed-off-by: trueeyu <lxhhust350@qq.com>
  • Loading branch information
trueeyu authored Feb 6, 2025
1 parent daa380d commit 2a7db12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/exprs/runtime_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ class RuntimeBloomFilter final : public RuntimeFilter {
CppType min_value(ObjectPool* pool) const {
if constexpr (IsSlice<CppType>) {
std::lock_guard<std::mutex> lk(_slice_mutex);
auto* str = pool->template add(new std::string(_min.get_data(), _min.get_size()));
auto* str = pool->template add<std::string>(new std::string(_min.get_data(), _min.get_size()));
return Slice(*str);
} else {
return _min;
Expand All @@ -532,7 +532,7 @@ class RuntimeBloomFilter final : public RuntimeFilter {
CppType max_value(ObjectPool* pool) const {
if constexpr (IsSlice<CppType>) {
std::lock_guard<std::mutex> lk(_slice_mutex);
auto* str = pool->template add(new std::string(_max.get_data(), _max.get_size()));
auto* str = pool->template add<std::string>(new std::string(_max.get_data(), _max.get_size()));
return Slice(*str);
} else {
return _max;
Expand Down

0 comments on commit 2a7db12

Please sign in to comment.