Skip to content

Commit

Permalink
#2264: use range-based loop
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed May 9, 2024
1 parent 77728e7 commit fa21b28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vt/runtime/runtime_banner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ void Runtime::printStartupBanner() {
fmt::format("{}Compile-time Features Enabled:{}\n", green, reset)
};

for (auto &&line: info_lines)
for (auto &&line : info_lines)
{
fmt::print("{}{}{}", vt_pre, line, reset);
}

for (size_t i = 0; i < features.size(); i++) {
fmt::print("{}\t{}\n", vt_pre, emph(features.at(i)));
for (const auto& feature : features) {
fmt::print("{}\t{}\n", vt_pre, emph(feature));
}

auto warn_cr = [=](std::string opt, std::string compile) -> std::string {
Expand Down

0 comments on commit fa21b28

Please sign in to comment.