Skip to content

Commit fd4fdf1

Browse files
committed
add requires
1 parent 76506a9 commit fd4fdf1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cpp/memilio/compartments/flow_model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class FlowModel : public CompartmentalModel<FP, Comp, Pop, Params>
243243
template <class Model, typename FP>
244244
concept IsFlowModel =
245245
requires(Model m, Eigen::Ref<const Eigen::VectorX<FP>> const_vref, Eigen::Ref<Eigen::VectorX<FP>> vref, FP t) {
246-
IsCompartmentalModel<Model, FP>;
246+
requires IsCompartmentalModel<Model, FP>;
247247
{ m.get_initial_flows() } -> std::convertible_to<Eigen::VectorX<FP>>;
248248
m.get_flows(const_vref, const_vref, t, vref);
249249
m.get_derivatives(const_vref, vref);

cpp/memilio/compartments/stochastic_model.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class StochasticModel
101101
template <class Model, typename FP>
102102
concept IsStochasticModel =
103103
requires(Model m, Eigen::Ref<const Eigen::VectorX<FP>> const_vref, Eigen::Ref<Eigen::VectorX<FP>> vref, FP t) {
104-
IsCompartmentalModel<Model, FP>;
104+
requires IsCompartmentalModel<Model, FP>;
105105
m.get_noise(const_vref, const_vref, t, vref);
106106
};
107107

0 commit comments

Comments
 (0)