From fc9a604e8536cfdcb5e4b322aa2dbbd234b9145a Mon Sep 17 00:00:00 2001 From: "Harry T. Vennik" Date: Sat, 22 Jul 2017 15:14:27 +0200 Subject: [PATCH] Fix demarshaling of private struct fields Tests now pass again. --- source/ddbus/conv.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ddbus/conv.d b/source/ddbus/conv.d index 43e491a..fa5abcb 100644 --- a/source/ddbus/conv.d +++ b/source/ddbus/conv.d @@ -291,7 +291,7 @@ void readIterTuple(Tup)(DBusMessageIter *iter, ref Tup tuple) if(isTuple!Tup && void readIterStruct(S)(DBusMessageIter *iter, ref S s) if(is(S == struct) && allCanDBus!(Fields!S)) { alias FieldNameTuple!S names; foreach(index, T; Fields!S) { - __traits(getMember, s, names[index]) = readIter!T(iter); + s.tupleof[index] = readIter!T(iter); } }