Some compile time help..
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun Mar 4 09:14:28 PST 2012
On 3/4/12, Daniel Murphy <yebblies at 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?
More information about the Digitalmars-d-learn
mailing list