Skip to content

Commit

Permalink
fix capture group in some lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikeyann committed Oct 8, 2024
1 parent ec4b8f3 commit e436092
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions cpp/src/io/json/host_tree_algorithms.cu
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,13 @@ std::vector<std::string> copy_strings_to_host_sync(
// build std::string vector from chars and offsets
std::vector<std::string> host_data;
host_data.reserve(col.size());
std::transform(
std::begin(h_offsets),
std::end(h_offsets) - 1,
std::begin(h_offsets) + 1,
std::back_inserter(host_data),
[&](auto start, auto end) { return std::string(h_chars.data() + start, end - start); });
std::transform(std::begin(h_offsets),
std::end(h_offsets) - 1,
std::begin(h_offsets) + 1,
std::back_inserter(host_data),
[&h_chars](auto start, auto end) {
return std::string(h_chars.data() + start, end - start);
});
return host_data;
};
return to_host(d_column_names->view());
Expand Down Expand Up @@ -466,7 +467,7 @@ std::pair<cudf::detail::host_vector<bool>, hashmap_of_device_columns> build_tree
std::fill_n(is_pruned.begin(), num_columns, options.is_enabled_prune_columns());

// prune all children of a column, but not self.
auto ignore_all_children = [&](auto parent_col_id) {
auto ignore_all_children = [&adj, &is_pruned](auto parent_col_id) {
std::deque<NodeIndexT> offspring;
if (adj.count(parent_col_id)) {
for (auto const& child : adj[parent_col_id]) {
Expand Down

0 comments on commit e436092

Please sign in to comment.