From 63c85c8f416a763f058777f257c96474c79e106b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Tich=C3=A1k?= Date: Thu, 10 Oct 2024 12:26:05 +0200 Subject: [PATCH] properly ignore runtime mergeable check from Post Processing --- Framework/include/QualityControl/ObjectsManager.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Framework/include/QualityControl/ObjectsManager.h b/Framework/include/QualityControl/ObjectsManager.h index 15d0d2201f..dbd8968cae 100644 --- a/Framework/include/QualityControl/ObjectsManager.h +++ b/Framework/include/QualityControl/ObjectsManager.h @@ -86,14 +86,17 @@ class ObjectsManager template void startPublishing(T obj, PublicationPolicy policy = PublicationPolicy::Forever) { - // We don't want to do this compile time check in PostProcessing + // We don't want to do this compile time check in PostProcessing, and we want to turn off runtime check as well + bool ignoreMergeableRuntime = IgnoreMergeable; #ifndef QUALITYCONTROL_POSTPROCESSINTERFACE_H static_assert(std::same_as, TObject> || IgnoreMergeable || mergers::Mergeable, "you are trying to startPublishing object that is not mergeable." " If you know what you are doing use startPublishing(...)"); +#else + ignoreMergeableRuntime = true; #endif - startPublishingImpl(obj, policy, IgnoreMergeable); + startPublishingImpl(obj, policy, ignoreMergeableRuntime); } /**