On 3/4/12, Daniel Murphy <yebbl...@nospamgmail.com> wrote: > void f(Args...)(Args args) { > foreach(i, T; Args) > { > static if (isSomeString!T) args[i] = toUTFz(args[i]); > } > needs_wchar_t(args); > }
toUTFz returns a pointer, the isSomeString checks if a type is a string. IOW that will try to assign a pointer to a string. But I don't understand the OPs requirements, what type does 'needs_wchar_t' take? A wchar*? A wchar**? Variadic arguments? Or something else?