Can't use core::dbus::Signal::disconnect(SignatureToken) due to a compile error

Bug #1485092 reported by Jim Hodapp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dbus-cpp
New
Undecided
Unassigned

Bug Description

Tried to call core::dbus::Signal::disconnect(SignatureToken) but am running into the following compile error:

/usr/include/core/dbus/impl/signal.h:68:32: error: return-statement with a value, in function returning 'void' [-fpermissive]
    return handlers.erase(token);

Example code:

auto = end_of_stream_token = dbus.end_of_stream->connect([this]() {});
dbus.end_of_stream->disconnect(signals.end_of_stream_token);

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.