access channel map with at

This commit is contained in:
NicolasWinckler 2015-11-11 09:41:04 +01:00
parent 383a220333
commit 1467360f75

View File

@ -74,7 +74,7 @@ class GenericFileSink : public FairMQDevice, public T, public U
int receivedMsg = 0;
// store the channel reference to avoid traversing the map on every loop iteration
const FairMQChannel& inputChannel = fChannels["data-in"].at(0);
const FairMQChannel& inputChannel = fChannels.at("data-in").at(0);
while (CheckCurrentState(RUNNING))
{