Template overloads involving `string` and `char[constant]` return value
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Sep 21 06:06:08 PDT 2016
On Wednesday, 21 September 2016 at 12:29:54 UTC, Johan Engelen
wrote:
> Wouldn't something like this be possible?
>
> `T toHexString(string toHexString(Order order =
> Order.increasing, LetterCase letterCase = LetterCase.upper,
> T)(.........) if (T == string)`
I'm not sure what that's supposed to be.... but in any case,
you'd still need to specify T somewhere in the call, the variable
you are assigning the result to never does anything with regard
to overloads or template args.
More information about the Digitalmars-d-learn
mailing list