diff --git a/Framework/Core/include/Framework/TableBuilder.h b/Framework/Core/include/Framework/TableBuilder.h index 2b19b43785d70..b00bb9ae622b8 100644 --- a/Framework/Core/include/Framework/TableBuilder.h +++ b/Framework/Core/include/Framework/TableBuilder.h @@ -644,17 +644,21 @@ auto constexpr to_tuple(T&& object) noexcept template constexpr auto makeHolderTypes() { - return [](std::index_sequence) { + return [](std::index_sequence) + { return std::tuple(typename HolderTrait::Holder(arrow::default_memory_pool())...); - }(std::make_index_sequence{}); + } + (std::make_index_sequence{}); } template auto makeHolders(arrow::MemoryPool* pool, size_t nRows) { - return [pool, nRows](std::index_sequence) { + return [ pool, nRows ](std::index_sequence) + { return new std::tuple(typename HolderTrait::Holder(pool, nRows)...); - }(std::make_index_sequence{}); + } + (std::make_index_sequence{}); } template