Skip to content

Commit

Permalink
Fixes #553: Use .begin() instead of .cbegin() in `rtc::program::a…
Browse files Browse the repository at this point in the history
…dd_headers()` to accomodate spans without `cbegin()`
  • Loading branch information
Eyal Rozenberg committed Oct 17, 2023
1 parent 8f8228c commit 748e372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cuda/rtc/program.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ class program_t<cuda_cpp> : public program_base_t<cuda_cpp> {
headers_.names.reserve(new_num_headers);
headers_.sources.reserve(new_num_headers);
// TODO: Use a zip iterator
for(auto name_it = header_names.cbegin(), source_it = header_sources.cbegin();
name_it < header_names.cend();
for(auto name_it = header_names.begin(), source_it = header_sources.begin();
name_it < header_names.end();
name_it++, source_it++) {
add_header(*name_it, *source_it);
}
Expand Down

0 comments on commit 748e372

Please sign in to comment.