diff --git a/src/cosim/slave_simulator.cpp b/src/cosim/slave_simulator.cpp index 1542d067..ffd7838f 100644 --- a/src/cosim/slave_simulator.cpp +++ b/src/cosim/slave_simulator.cpp @@ -218,7 +218,7 @@ class set_variable_cache std::pair, gsl::span> modify_and_get( duration deltaT, - std::optional> filter = std::nullopt) + std::optional> filter = std::nullopt) { if (!hasRunModifiers_) { for (const auto& entry : modifiers_) { @@ -518,7 +518,7 @@ class slave_simulator::impl { auto deltaT = duration::zero(); auto filter = [this](const variable_type vt) { - return [this, vt](const value_reference vr, const cosim::scalar_value) { + return [this, vt](const value_reference vr, const cosim::scalar_value&) { const auto& vd = this->find_variable_description(vr, vt); return vd.variability != variable_variability::constant && vd.causality != variable_causality::input;