Skip to content

Commit

Permalink
KokkosSparse_par_ilut_numeric_impl.hpp: use capture by reference
Browse files Browse the repository at this point in the history
Resolve warnings in builds with c++20 support enabled:
"kokkos-kernels/sparse/impl/KokkosSparse_par_ilut_numeric_impl.hpp(591):
warning #2908-D: the implicit by-copy capture of "this" is deprecated"
  • Loading branch information
ndellingwood committed Dec 15, 2023
1 parent d53066a commit c61f708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparse/impl/KokkosSparse_par_ilut_numeric_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ struct IlutWrap {
count);

Kokkos::single(Kokkos::PerTeam(team),
[=]() { O_row_map(row_idx) = count; });
[&]() { O_row_map(row_idx) = count; });
}

float_t threshold;
Expand Down

0 comments on commit c61f708

Please sign in to comment.