From 6060bb4e8bd3988220febc0ea04ac6dd70939123 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Thu, 22 Oct 2026 12:24:41 +0200 Subject: [PATCH] feature_flag: Call RNTupleDescriptorBuilder::AddField Since commit https://github.com/root-project/root/commit/6e25fbb31 in https://github.com/root-project/root/pull/23400. --- structure/feature_flag/write.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/structure/feature_flag/write.C b/structure/feature_flag/write.C index f0d04fd..7903513 100644 --- a/structure/feature_flag/write.C +++ b/structure/feature_flag/write.C @@ -27,10 +27,14 @@ void write(std::string_view filename = "structure.feature_flag.root") { #endif descBuilder.SetNTuple("ntpl", ""); descBuilder.SetFeature(kFeatureFlagTest); +#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 41, 0) + descBuilder.AddField(ROOT::RFieldZero(), 0); +#else descBuilder.AddField(RFieldDescriptorBuilder::FromField(ROOT::RFieldZero()) .FieldId(0) .MakeDescriptor() .Unwrap()); +#endif auto descriptor = descBuilder.MoveDescriptor(); ROOT::RNTupleWriteOptions options;