diff --git a/include/FeedingFanOut.h b/include/FeedingFanOut.h index 52af45dcb674636ea4025fd506ed96ef0ad90d21..5c4f572ec148aeda1d550e70ba989c2ec5db1c4f 100644 --- a/include/FeedingFanOut.h +++ b/include/FeedingFanOut.h @@ -127,7 +127,7 @@ namespace ChimeraTK { if(!_withReturn) throw ChimeraTK::logic_error("Read operation called on write-only variable."); assert(_hasReturnSlave); - auto _ = cppext::finally([&]{ + auto _ = cppext::finally([&] { _returnSlave->accessChannel(0).swap(ChimeraTK::NDRegisterAccessor<UserType>::buffer_2D[0]); // distribute return-channel update to the other slaves for(auto& slave : FanOut<UserType>::slaves) { // send out copies to slaves @@ -164,7 +164,7 @@ namespace ChimeraTK { // them all, otherwise the first accessor might take us the data away... RuntimeErrorCollector ec; for(auto& slave : FanOut<UserType>::slaves) { - ec.wrap([&] { slave->preWrite(type); }) + ec.wrap([&] { slave->preWrite(type); }); } ec.unwrap();