File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Framework/include/QualityControl Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,17 @@ class ObjectsManager
8686 template <bool IgnoreMergeable = false , typename T>
8787 void startPublishing (T obj, PublicationPolicy policy = PublicationPolicy::Forever)
8888 {
89- // We don't want to do this compile time check in PostProcessing
89+ // We don't want to do this compile time check in PostProcessing, and we want to turn off runtime check as well
90+ bool ignoreMergeableRuntime = IgnoreMergeable;
9091#ifndef QUALITYCONTROL_POSTPROCESSINTERFACE_H
9192 static_assert (std::same_as<std::remove_pointer_t <T>, TObject> ||
9293 IgnoreMergeable || mergers::Mergeable<T>,
9394 " you are trying to startPublishing object that is not mergeable."
9495 " If you know what you are doing use startPublishing<true>(...)" );
96+ #else
97+ ignoreMergeableRuntime = true ;
9598#endif
96- startPublishingImpl (obj, policy, IgnoreMergeable );
99+ startPublishingImpl (obj, policy, ignoreMergeableRuntime );
97100 }
98101
99102 /* *
You can’t perform that action at this time.
0 commit comments