diff --git a/include/sdbus-c++/Interfaces.h b/include/sdbus-c++/Interfaces.h index 8aa0da5..39ff9f4 100644 --- a/include/sdbus-c++/Interfaces.h +++ b/include/sdbus-c++/Interfaces.h @@ -113,6 +113,14 @@ namespace sdbus { { getObject().finishRegistration(); } + + ProxyInterfaces(std::unique_ptr&& connection, std::string destination, std::string objectPath) + : ObjectHolder(createObjectProxy(std::move(connection), std::move(destination), std::move(objectPath))) + , _Interfaces(getObject())... + { + getObject().finishRegistration(); + } + }; }