introspectable interface doesn't compile

Bug #1763074 reported by Rich on 2018-04-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dbus-cpp
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();
    }

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  Edit
Everyone can see this information.

Other bug subscribers