introspectable interface doesn't compile

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

Bug Description

Anyone who #includes core/dbus/interfaces/introspectable.h will get a compile error at the call to invoke_method_synchronously in the method 'introspect()'. The return type of invoke_method_synchronously() does not match the return type of the intropect() call. I believe all that is required is this change:

    std::string introspect()
    {
        return service->root_object()->invoke_method_synchronously<Introspect, std::string>();
    }

to

    std::string introspect()
    {
        return service->root_object()->invoke_method_synchronously<Introspect, std::string>().value();
    }

Tags: dbus dbus-cpp
Revision history for this message
Rich (rhvonlehe) wrote :

A test or example that uses this interface would be great. I'm trying to use this interface myself and if successful I might circle back and submit an update to the 'benchmark' example to make it introspectable.

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.