void bar (const(T)[] a) {}
void foo (T) (const(T)[] a) { bar("abc"T); } foo("def"w);In this case the string literal passed to "bar" would be of the type "wstring".
Is this somehow possible or do I have to create a variable? -- /Jacob Carlborg
void bar (const(T)[] a) {}
void foo (T) (const(T)[] a) { bar("abc"T); } foo("def"w);In this case the string literal passed to "bar" would be of the type "wstring".
Is this somehow possible or do I have to create a variable? -- /Jacob Carlborg