From ec06462713bd225662573b429327ca50fd163d42 Mon Sep 17 00:00:00 2001 From: sangelovic Date: Mon, 6 Aug 2018 22:58:36 +0200 Subject: [PATCH] Add missing constructor overload for ProxyInterfaces --- include/sdbus-c++/Interfaces.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); + } + }; }