After a thorough reading of the documentation I found an even simpler solution:

bool hasItemParent(T)(const(char)[] itemId, T parentId)
if (is(T : const(char)[]) || is(T : const(char[])[]))
{ ... }

Now it accepts all these: char[], const(char)[], immutable(char)[], char[][], const(char)[][] ,immutable(char)[][] but not their wchar and dchar counterparts.

Reply via email to