From fd3799dbc3127b11f2e0ee6b0f1e3f86bd9fbb08 Mon Sep 17 00:00:00 2001 From: Stanislav Angelovic Date: Wed, 6 Jun 2018 11:49:02 +0200 Subject: [PATCH] Fix sdbus::Struct initialization problem in newer compilers - use make_struct --- test/integrationtests/TestingAdaptor.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/integrationtests/TestingAdaptor.h b/test/integrationtests/TestingAdaptor.h index 0254d0f..db10277 100644 --- a/test/integrationtests/TestingAdaptor.h +++ b/test/integrationtests/TestingAdaptor.h @@ -72,8 +72,7 @@ protected: sdbus::Struct>> getStructInStruct() const { - sdbus::Struct>> x{STRING_VALUE, {{{INT32_VALUE, INT32_VALUE}}}}; - return x; + return sdbus::make_struct(STRING_VALUE, sdbus::make_struct(std::map{{INT32_VALUE, INT32_VALUE}})); } int32_t sumStructItems(const sdbus::Struct& a, const sdbus::Struct& b)