From f80abc4cb420bba44d48a580e3892a9fbd488b09 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Fri, 9 Aug 2024 16:21:16 +0200 Subject: [PATCH] Fix wrong error message when using std::map as input or output with transformers (#221) --- k4FWCore/include/k4FWCore/Transformer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/k4FWCore/include/k4FWCore/Transformer.h b/k4FWCore/include/k4FWCore/Transformer.h index 323c0246..bc942c7a 100644 --- a/k4FWCore/include/k4FWCore/Transformer.h +++ b/k4FWCore/include/k4FWCore/Transformer.h @@ -44,10 +44,10 @@ namespace k4FWCore { using Gaudi::Functional::details::DataHandleMixin, std::tuple<>, Traits_>::DataHandleMixin; static_assert(((std::is_base_of_v || isVectorLike_v)&&...), - "Transformer and Producer input types must be EDM4hep collections or maps to collections"); + "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>), - "Transformer and Producer output types must be EDM4hep collections or maps to collections"); + "Transformer and Producer output types must be EDM4hep collections or vectors of collections"); template using InputHandle_t = Gaudi::Functional::details::InputHandle_t>; @@ -184,9 +184,9 @@ namespace k4FWCore { using Gaudi::Functional::details::DataHandleMixin, std::tuple<>, Traits_>::DataHandleMixin; static_assert(((std::is_base_of_v || isVectorLike::value) && ...), - "Transformer and Producer input types must be EDM4hep collections or maps to collections"); + "Transformer and Producer input types must be EDM4hep collections or vectors of collections"); static_assert(((std::is_base_of_v || isVectorLike::value) && ...), - "Transformer and Producer output types must be EDM4hep collections or maps to collections"); + "Transformer and Producer output types must be EDM4hep collections or vectors of collections"); template using InputHandle_t = Gaudi::Functional::details::InputHandle_t>;