This is an automated email from the ASF dual-hosted git repository. zykkk pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new 39b9b81d428 branch-2.1:[fix](build) Fix Mac compilation error caused by namespace conflict in find_symbols.h (#43868) 39b9b81d428 is described below commit 39b9b81d4286fd0b51925637292781dbb5066284 Author: zy-kkk <zhongyongk...@selectdb.com> AuthorDate: Thu Nov 14 10:10:12 2024 +0800 branch-2.1:[fix](build) Fix Mac compilation error caused by namespace conflict in find_symbols.h (#43868) --- be/src/vec/functions/url/find_symbols.h | 56 +++++++++++++++++---------------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/be/src/vec/functions/url/find_symbols.h b/be/src/vec/functions/url/find_symbols.h index 7af95ce06bd..715fbc06dec 100644 --- a/be/src/vec/functions/url/find_symbols.h +++ b/be/src/vec/functions/url/find_symbols.h @@ -361,8 +361,8 @@ inline const char* find_first_symbols_dispatch(const std::string_view haystack, template <char... symbols> inline const char* find_first_symbols(const char* begin, const char* end) { - return detail::find_first_symbols_dispatch<true, detail::ReturnMode::End, symbols...>(begin, - end); + return ::detail::find_first_symbols_dispatch<true, ::detail::ReturnMode::End, symbols...>(begin, + end); } /// Returning non const result for non const arguments. @@ -370,93 +370,95 @@ inline const char* find_first_symbols(const char* begin, const char* end) { template <char... symbols> inline char* find_first_symbols(char* begin, char* end) { return const_cast<char*>( - detail::find_first_symbols_dispatch<true, detail::ReturnMode::End, symbols...>(begin, - end)); + ::detail::find_first_symbols_dispatch<true, ::detail::ReturnMode::End, symbols...>( + begin, end)); } inline const char* find_first_symbols(std::string_view haystack, const SearchSymbols& symbols) { - return detail::find_first_symbols_dispatch<true, detail::ReturnMode::End>(haystack, symbols); + return ::detail::find_first_symbols_dispatch<true, ::detail::ReturnMode::End>(haystack, + symbols); } template <char... symbols> inline const char* find_first_not_symbols(const char* begin, const char* end) { - return detail::find_first_symbols_dispatch<false, detail::ReturnMode::End, symbols...>(begin, - end); + return ::detail::find_first_symbols_dispatch<false, ::detail::ReturnMode::End, symbols...>( + begin, end); } template <char... symbols> inline char* find_first_not_symbols(char* begin, char* end) { return const_cast<char*>( - detail::find_first_symbols_dispatch<false, detail::ReturnMode::End, symbols...>(begin, - end)); + ::detail::find_first_symbols_dispatch<false, ::detail::ReturnMode::End, symbols...>( + begin, end)); } inline const char* find_first_not_symbols(std::string_view haystack, const SearchSymbols& symbols) { - return detail::find_first_symbols_dispatch<false, detail::ReturnMode::End>(haystack, symbols); + return ::detail::find_first_symbols_dispatch<false, ::detail::ReturnMode::End>(haystack, + symbols); } template <char... symbols> inline const char* find_first_symbols_or_null(const char* begin, const char* end) { - return detail::find_first_symbols_dispatch<true, detail::ReturnMode::Nullptr, symbols...>(begin, - end); + return ::detail::find_first_symbols_dispatch<true, ::detail::ReturnMode::Nullptr, symbols...>( + begin, end); } template <char... symbols> inline char* find_first_symbols_or_null(char* begin, char* end) { return const_cast<char*>( - detail::find_first_symbols_dispatch<true, detail::ReturnMode::Nullptr, symbols...>( + ::detail::find_first_symbols_dispatch<true, ::detail::ReturnMode::Nullptr, symbols...>( begin, end)); } inline const char* find_first_symbols_or_null(std::string_view haystack, const SearchSymbols& symbols) { - return detail::find_first_symbols_dispatch<true, detail::ReturnMode::Nullptr>(haystack, - symbols); + return ::detail::find_first_symbols_dispatch<true, ::detail::ReturnMode::Nullptr>(haystack, + symbols); } template <char... symbols> inline const char* find_first_not_symbols_or_null(const char* begin, const char* end) { - return detail::find_first_symbols_dispatch<false, detail::ReturnMode::Nullptr, symbols...>( + return ::detail::find_first_symbols_dispatch<false, ::detail::ReturnMode::Nullptr, symbols...>( begin, end); } template <char... symbols> inline char* find_first_not_symbols_or_null(char* begin, char* end) { return const_cast<char*>( - detail::find_first_symbols_dispatch<false, detail::ReturnMode::Nullptr, symbols...>( + ::detail::find_first_symbols_dispatch<false, ::detail::ReturnMode::Nullptr, symbols...>( begin, end)); } inline const char* find_first_not_symbols_or_null(std::string_view haystack, const SearchSymbols& symbols) { - return detail::find_first_symbols_dispatch<false, detail::ReturnMode::Nullptr>(haystack, - symbols); + return ::detail::find_first_symbols_dispatch<false, ::detail::ReturnMode::Nullptr>(haystack, + symbols); } template <char... symbols> inline const char* find_last_symbols_or_null(const char* begin, const char* end) { - return detail::find_last_symbols_sse2<true, detail::ReturnMode::Nullptr, symbols...>(begin, - end); + return ::detail::find_last_symbols_sse2<true, ::detail::ReturnMode::Nullptr, symbols...>(begin, + end); } template <char... symbols> inline char* find_last_symbols_or_null(char* begin, char* end) { return const_cast<char*>( - detail::find_last_symbols_sse2<true, detail::ReturnMode::Nullptr, symbols...>(begin, - end)); + ::detail::find_last_symbols_sse2<true, ::detail::ReturnMode::Nullptr, symbols...>(begin, + end)); } template <char... symbols> inline const char* find_last_not_symbols_or_null(const char* begin, const char* end) { - return detail::find_last_symbols_sse2<false, detail::ReturnMode::Nullptr, symbols...>(begin, - end); + return ::detail::find_last_symbols_sse2<false, ::detail::ReturnMode::Nullptr, symbols...>(begin, + end); } template <char... symbols> inline char* find_last_not_symbols_or_null(char* begin, char* end) { return const_cast<char*>( - detail::find_last_symbols_sse2<false, detail::ReturnMode::Nullptr, symbols...>(begin, - end)); + ::detail::find_last_symbols_sse2<false, ::detail::ReturnMode::Nullptr, symbols...>( + begin, end)); } /// Slightly resembles boost::split. The drawback of boost::split is that it fires a false positive in clang static analyzer. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org