From 85342e2bcc4a144c9504e06eeffe6a785d62e39b Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Fri, 30 Oct 2026 14:54:12 +0100 Subject: [PATCH] [df] Avoid captured structured bindings They are a C++20 extension which Clang warns about. (cherry picked from commit 44644e4171e34698a9a9ca9eba763832d06f1947) --- tree/dataframe/src/RNTupleDS.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tree/dataframe/src/RNTupleDS.cxx b/tree/dataframe/src/RNTupleDS.cxx index 1628b5d6b7eb3..97953c08bc86e 100644 --- a/tree/dataframe/src/RNTupleDS.cxx +++ b/tree/dataframe/src/RNTupleDS.cxx @@ -1059,7 +1059,9 @@ void ROOT::RDF::RNTupleDS::ScheduleTasksForFileWithGlobalOffset( source->LoadAllPageLists(); const std::uint64_t globalFileOffset = globalFileOffsets[fileIdx]; - const auto [globalBegin, globalEnd] = fGlobalEntryRange.value(); + // captured structured bindings are a C++20 extension + const auto globalBegin = fGlobalEntryRange.value().first; + const auto globalEnd = fGlobalEntryRange.value().second; const auto clustersAndEntries = [&]() -> std::pair, ROOT::NTupleSize_t> {