Fix template bug in type conversion for BitFlags

This commit is contained in:
Harry T. Vennik 2017-08-19 14:52:38 +02:00
parent ba2c2979d2
commit 63bbbd0a14

View file

@ -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(