Skip to content

Commit

Permalink
#276: lb: make vector<bool> const&
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jun 13, 2023
1 parent c376d16 commit 27ba5fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/lb_data_restart_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void LBDataRestartReader::determinePhasesToMigrate() {
});
}

void LBDataRestartReader::reduceDistroChanges(std::vector<bool> vec) {
void LBDataRestartReader::reduceDistroChanges(std::vector<bool> const& vec) {
changed_distro_ = std::move(vec);
}

Expand Down
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/lb_data_restart_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ struct LBDataRestartReader : runtime::component::Component<LBDataRestartReader>
*
* \param[in] vec the vector of booleans
*/
void reduceDistroChanges(std::vector<bool> vec);
void reduceDistroChanges(std::vector<bool> const& vec);

/**
* \brief Determine which phases migrations must happen to follow the
Expand Down

0 comments on commit 27ba5fa

Please sign in to comment.