diff --git a/dlib/alloc.d b/dlib/alloc.d index 5e91045..38af745 100644 --- a/dlib/alloc.d +++ b/dlib/alloc.d @@ -143,7 +143,7 @@ Alloc(string target) } string -AllocTerminated(char[] target) +AllocTerminated(T)(T target) if(StringType!T) { u8[] str = Alloc!(u8)(target.length+1); str[0 .. target.length] = str[];