This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 30ceb7aea7 [fix](chore] need to remove reference in assert_cast 
(#22706)
30ceb7aea7 is described below

commit 30ceb7aea788d1b54256933e241678f815ee841c
Author: Jerry Hu <mrh...@gmail.com>
AuthorDate: Tue Aug 8 20:36:05 2023 +0800

    [fix](chore] need to remove reference in assert_cast (#22706)
---
 be/src/vec/common/assert_cast.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/vec/common/assert_cast.h b/be/src/vec/common/assert_cast.h
index 922cb74c61..879f27ed8d 100644
--- a/be/src/vec/common/assert_cast.h
+++ b/be/src/vec/common/assert_cast.h
@@ -39,7 +39,7 @@ To assert_cast(From&& from) {
     try {
         if constexpr (std::is_pointer_v<To>) {
             if (typeid(*from) == typeid(std::remove_pointer_t<To>)) return 
static_cast<To>(from);
-            if constexpr (std::is_pointer_v<From>) {
+            if constexpr (std::is_pointer_v<std::remove_reference_t<From>>) {
                 if (auto ptr = dynamic_cast<To>(from); ptr != nullptr) {
                     return ptr;
                 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to