introspectable interface doesn't compile

Bug #1763074 reported by Rich
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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>();


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

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

Other bug subscribers