Skip to content

Commit ab7648f

Browse files
committed
Fix compilation errors
1 parent 1eaf510 commit ab7648f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cpp/arcticdb/processing/clause.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ std::vector<EntityId> AggregationClause::process(std::vector<EntityId>&& entity_
452452
});
453453

454454
auto column_data = index_col->data();
455-
ranges::transform(elements, column_data.begin<typename col_type_info::TDT>(), [](const auto& element) {
455+
std::transform(elements.cbegin(), elements.cend(), column_data.begin<typename col_type_info::TDT>(), [](const auto& element) {
456456
return element.first;
457457
});
458458
});

cpp/arcticdb/processing/unsorted_aggregation.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,10 @@ SegmentInMemory MeanAggregatorData::finalize(const ColumnName& output_column_nam
480480
fractions_.resize(unique_values);
481481
auto col = std::make_shared<Column>(make_scalar_type(DataType::FLOAT64), fractions_.size(), AllocationType::PRESIZED, Sparsity::NOT_PERMITTED);
482482
auto column_data = col->data();
483-
ranges::transform(fractions_, column_data.begin<ScalarTagType<DataTypeTag<DataType::FLOAT64>>>(), [](auto fraction) {
484-
return fraction.to_double();
485-
});
483+
std::transform(fractions_.begin(), fractions_.end(),
484+
column_data.begin<ScalarTagType<DataTypeTag<DataType::FLOAT64>>>(), [](auto fraction) {
485+
return fraction.to_double();
486+
});
486487
col->set_row_data(fractions_.size() - 1);
487488
res.add_column(scalar_field(DataType::FLOAT64, output_column_name.value), col);
488489
}

0 commit comments

Comments
 (0)