Cleanup typeSig implementation for DictionaryEntry
This commit is contained in:
parent
3fa88ee9f7
commit
111b5c5af3
|
@ -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;
|
||||||
return "{" ~ typeSig!K ~ typeSig!V ~ '}';
|
alias typeof(T.value) V;
|
||||||
else
|
return "{" ~ typeSig!K ~ typeSig!V ~ '}';
|
||||||
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) {
|
||||||
|
|
Loading…
Reference in a new issue