Fix demarshaling of private struct fields

Tests now pass again.
This commit is contained in:
Harry T. Vennik 2017-07-22 15:14:27 +02:00
parent 87a06cead1
commit fc9a604e85

View file

@ -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);
}
}