From 995a535b8246d8abb8de156198d98c9a68fd64b3 Mon Sep 17 00:00:00 2001
From: Markus FRANK <Markus.Frank@cern.ch>
Date: Fri, 29 Jan 2021 20:54:09 +0100
Subject: [PATCH] Fix to propagate definitions properly to depending
 compilation units

---
 DDCore/src/Primitives.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDCore/src/Primitives.cpp b/DDCore/src/Primitives.cpp
index a9f34639c..eea237cfd 100644
--- a/DDCore/src/Primitives.cpp
+++ b/DDCore/src/Primitives.cpp
@@ -461,10 +461,10 @@ void* dd4hep::Cast::apply_dynCast(const Cast& to, const void* ptr) const
       r = cast_wrap(ptr, (const class_t*) abi_class, src_type, -1);
       if (r)      return r;
     }
-#endif
 #endif
     throw unrelated_type_error(type, to.type, "Failed to apply abi dynamic cast operation!");
   }
+#endif
   throw unrelated_type_error(type, to.type, "Target type is not an abi class type!");
 }
 
-- 
GitLab