Cleanup typeSig implementation for DictionaryEntry

This commit is contained in:
Harry T. Vennik 2017-06-20 21:23:53 +02:00
parent 3fa88ee9f7
commit 111b5c5af3

View file

@ -120,10 +120,9 @@ string typeSig(T)() if(canDBus!T) {
} }
string typeSig(T)() if(isInstanceOf!(DictionaryEntry, T)) { string typeSig(T)() if(isInstanceOf!(DictionaryEntry, T)) {
static if(is(T == DictionaryEntry!(K, V), K, V)) // need to get K and V somehow alias typeof(T.key) K;
alias typeof(T.value) V;
return "{" ~ typeSig!K ~ typeSig!V ~ '}'; return "{" ~ typeSig!K ~ typeSig!V ~ '}';
else
static assert (false, "DictionaryEntry always has a key type and value type, right?");
} }
string[] typeSigReturn(T)() if(canDBus!T) { string[] typeSigReturn(T)() if(canDBus!T) {