Skip to content

Commit f487bb2

Browse files
Bugfix: Defining a default termination condition in MakeRootTreeWriterSpec
The content of the variant with the termination conditions was uninitialized, leading to an invalid instance when extracting a concrete type from the variant.
1 parent abcd8e0 commit f487bb2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Framework/Utils/include/DPLUtils/MakeRootTreeWriterSpec.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,11 @@ class MakeRootTreeWriterSpec
218218
/// @param dataref the DPL DataRef object
219219
/// @return true if ready
220220
using CheckReady = std::function<bool(o2::framework::DataRef const&)>;
221+
/// default condition
222+
using CheckDefault = std::function<bool()>;
221223

222224
/// the actual evaluator
223-
std::variant<CheckReady, CheckProcessing> check;
225+
std::variant<CheckDefault, CheckReady, CheckProcessing> check = []() { return true; };
224226
};
225227

226228
/// unary helper functor to extract the input key from the InputSpec

0 commit comments

Comments
 (0)