Skip to content

Commit 652c819

Browse files
committed
DPL: get rid of warning
1 parent b278190 commit 652c819

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Framework/Core/src/FairMQDeviceProxy.cxx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,7 @@ void FairMQDeviceProxy::bind(std::vector<OutputRoute> const& outputs, std::vecto
320320
mInputRoutes.emplace_back(RouteState{channelIndex, false});
321321
ri++;
322322
}
323-
for (auto& route : mInputRoutes) {
324-
assert(route.channel.value != -1);
325-
assert(route.channel.value < mInputChannels.size());
326-
}
323+
assert(std::all_of(mInputRoutes.begin(), mInputRoutes.end(), [s = mInputChannels.size()](RouteState const& route) { return route.channel.value != -1 && route.channel.value < s; }));
327324
LOGP(detail, "Total input channels found {}, total routes {}", mInputChannels.size(), mInputRoutes.size());
328325
assert(mInputRoutes.size() == inputs.size());
329326
}

0 commit comments

Comments
 (0)