We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f66d31 + e7c3c07 commit 75f7b38Copy full SHA for 75f7b38
1 file changed
power_grid_model_c/power_grid_model/include/power_grid_model/topology.hpp
@@ -556,7 +556,8 @@ class Topology {
556
std::ranges::for_each(math_topology_,
557
[](MathModelTopology& topo) { topo.load_gen_type.resize(topo.n_load_gen()); });
558
// assign load type
559
- for (auto const& [idx_math, load_gen_type] : std::views::zip(comp_coup_.load_gen, comp_topo_.load_gen_type)) {
+ for (auto const& [idx_math, load_gen_type] :
560
+ std::views::zip(std::as_const(comp_coup_.load_gen), std::as_const(comp_topo_.load_gen_type))) {
561
if (idx_math.group == -1) {
562
continue;
563
}
0 commit comments