Skip to content

Commit 97ea087

Browse files
Appearently, DPL callback adapters do noy yet support const parameters
Using e.g. RawDeviceService const& in the init callback leads to an exception which is difficult to understand and it comes from the adaptStateful converters (_ZNK2o29framework15ServiceRegistry3getEjmNS0_11ServiceKindEPKc+0x2b9)[0x56376fa3f8b1]
1 parent f70f87e commit 97ea087

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Framework/Core/test/test_VariablePayloadSequenceWorkflow.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const& config)
224224
}
225225
};
226226

227-
auto createCounters = [](RawDeviceService const& rds) -> std::shared_ptr<ConsumerCounters> {
227+
auto createCounters = [](RawDeviceService& rds) -> std::shared_ptr<ConsumerCounters> {
228228
auto counters = std::make_shared<ConsumerCounters>();
229229
ConsumerCounters& c = *counters;
230230
for (auto const& channelSpec : rds.spec().inputChannels) {
@@ -249,7 +249,7 @@ std::vector<DataProcessorSpec> defineDataProcessing(ConfigContext const& config)
249249
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
250250
// the consumer process connects to the producer
251251
//
252-
auto consumerInit = [createCounters, checkCounters, inputChecker](RawDeviceService const& rds, CallbackService& callbacks) {
252+
auto consumerInit = [createCounters, checkCounters, inputChecker](RawDeviceService& rds, CallbackService& callbacks) {
253253
auto counters = createCounters(rds);
254254
callbacks.set(CallbackService::Id::Stop, [counters, checkCounters]() {
255255
ASSERT_ERROR(checkCounters(counters));

0 commit comments

Comments
 (0)