From a0d82c389ee270edb9a649fe21942c2c8c4e0867 Mon Sep 17 00:00:00 2001 From: jvallve <jvallve@iri.upc.edu> Date: Fri, 5 Aug 2022 14:19:55 +0200 Subject: [PATCH] hotfix: still a bug --- include/core/frame/frame_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/core/frame/frame_base.h b/include/core/frame/frame_base.h index cb1f99ce9..0f0271a1b 100644 --- a/include/core/frame/frame_base.h +++ b/include/core/frame/frame_base.h @@ -294,7 +294,7 @@ inline std::shared_ptr<const C> FrameBase::getCaptureOfType() const { for (auto capture_ptr : getCaptureList()) { - auto cap_derived = std::dynamic_pointer_cast<C>(capture_ptr); + auto cap_derived = std::dynamic_pointer_cast<const C>(capture_ptr); if (cap_derived) return cap_derived; } @@ -319,7 +319,7 @@ inline std::list<std::shared_ptr<const C>> FrameBase::getCapturesOfType() const std::list<std::shared_ptr<const C>> captures; for (auto capture_ptr : getCaptureList()) { - auto cap_derived = std::dynamic_pointer_cast<C>(capture_ptr); + auto cap_derived = std::dynamic_pointer_cast<const C>(capture_ptr); if (cap_derived) captures.push_back(cap_derived); } -- GitLab