Fix template bug in type conversion for BitFlags
This commit is contained in:
parent
ba2c2979d2
commit
63bbbd0a14
|
@ -173,7 +173,7 @@ T readIter(T)(DBusMessageIter *iter) if (isInstanceOf!(BitFlags, T)) {
|
||||||
alias TemplateArgsOf!T[0] E;
|
alias TemplateArgsOf!T[0] E;
|
||||||
alias OriginalType!E B;
|
alias OriginalType!E B;
|
||||||
|
|
||||||
B mask = only(EnumMembers!E).fold!((a, b) => a | b);
|
B mask = only(EnumMembers!E).fold!((a, b) => cast(B) (a | b));
|
||||||
|
|
||||||
B value = readIter!B(iter);
|
B value = readIter!B(iter);
|
||||||
enforce(
|
enforce(
|
||||||
|
|
Loading…
Reference in a new issue