Skip to content

Commit 6151dd0

Browse files
committed
changed to lvalue ref
1 parent 9d1c559 commit 6151dd0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cpp/models/ide_secir/model.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ void Model::update_compartments()
323323
}
324324

325325
void Model::update_compartment_from_flow(InfectionState infectionState,
326-
std::vector<InfectionTransition> const&& IncomingFlows,
327-
std::vector<InfectionTransition> const&& OutgoingFlows)
326+
std::vector<InfectionTransition> const& IncomingFlows,
327+
std::vector<InfectionTransition> const& OutgoingFlows)
328328
{
329329
Eigen::Index num_time_points = m_populations.get_num_time_points();
330330
ScalarType updated_compartment = m_populations[num_time_points - 2][Eigen::Index(infectionState)];

cpp/models/ide_secir/model.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ class Model
269269
* Therefore the flows of the current time step should be calculated before using this function.
270270
*/
271271
void update_compartment_from_flow(InfectionState infectionState,
272-
std::vector<InfectionTransition> const&& IncomingFlows,
273-
std::vector<InfectionTransition> const&& OutgoingFlows);
272+
std::vector<InfectionTransition> const& IncomingFlows,
273+
std::vector<InfectionTransition> const& OutgoingFlows);
274274

275275
// ---- Private parameters. ----
276276
ScalarType m_forceofinfection{0}; ///< Force of infection term needed for numerical scheme.

0 commit comments

Comments
 (0)