Skip to content

Commit a88b09b

Browse files
author
Michal Tichák
committed
properly ignore runtime mergeable check from Post Processing
1 parent b74dfd0 commit a88b09b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Framework/include/QualityControl/ObjectsManager.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)