From 94279a5e512040e8a7c7595e52f74a0fcabf3fd9 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Mon, 28 Oct 2024 08:21:04 +0100 Subject: [PATCH] Fix the last issue --- k4FWCore/include/k4FWCore/Transformer.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/k4FWCore/include/k4FWCore/Transformer.h b/k4FWCore/include/k4FWCore/Transformer.h index 760b03b6..4b85c69f 100644 --- a/k4FWCore/include/k4FWCore/Transformer.h +++ b/k4FWCore/include/k4FWCore/Transformer.h @@ -43,10 +43,10 @@ namespace k4FWCore { : Gaudi::Functional::details::DataHandleMixin, std::tuple<>, Traits_> { using Gaudi::Functional::details::DataHandleMixin, std::tuple<>, Traits_>::DataHandleMixin; - static_assert(((std::is_base_of_v || isVectorLike_v)&&...), + static_assert(((std::is_base_of_v || isVectorLike_v) && ...), "Transformer and Producer input types must be EDM4hep collections or vectors of collections"); static_assert((std::is_base_of_v || isVectorLike_v || - std::is_same_v, Out>), + std::is_same_v), "Transformer and Producer output types must be EDM4hep collections or vectors of collections"); template @@ -56,8 +56,8 @@ namespace k4FWCore { std::tuple::type>>...> m_inputs; std::tuple::type>>> m_outputs; - std::array>, sizeof...(In)> m_inputLocations{}; - Gaudi::Property> m_outputLocations{}; + std::array>, sizeof...(In)> m_inputLocations{}; + Gaudi::Property> m_outputLocations{}; using base_class = Gaudi::Functional::details::DataHandleMixin, std::tuple<>, Traits_>; @@ -117,7 +117,7 @@ namespace k4FWCore { } else { Gaudi::Functional::details::put( std::get<0>(this->m_outputs)[0], - convertToSharedPtr(std::move(filter_evtcontext_tt::apply(*this, ctx, this->m_inputs)))); + convertToUniquePtr(std::move(filter_evtcontext_tt::apply(*this, ctx, this->m_inputs)))); } return Gaudi::Functional::FilterDecision::PASSED; } catch (GaudiException& e) { @@ -194,8 +194,8 @@ namespace k4FWCore { std::tuple::type>>...> m_inputs; std::tuple::type>>...> m_outputs; - std::array>, sizeof...(In)> m_inputLocations{}; - std::array>, sizeof...(Out)> m_outputLocations{}; + std::array>, sizeof...(In)> m_inputLocations{}; + std::array>, sizeof...(Out)> m_outputLocations{}; using base_class = Gaudi::Functional::details::DataHandleMixin, std::tuple<>, Traits_>;