
▲ 147 r/waterloo
Region could test no right turns at red lights at major intersections
kitchener.citynews.cau/FrostshockFTW — 8 days ago

Currently I'm doing this, which works fine but leaves me wanting.
std::optional<int> acc;
while(/*...*/) {
if(auto maybe_val = Get_optional_value()) {
*maybe_val += acc.value_or(0);
acc = std::move(maybe_val);
}
}