Fun with templates

Manu turkeyman at gmail.com
Sat Jul 6 03:24:41 PDT 2013


On 6 July 2013 18:23, Namespace <rswhite4 at googlemail.com> wrote:

> That doesn't do what I want at all. The signature is still f(T) not
>> f(Unqual!T).
>>
>
> For non-const, const and immutable inout would do it.
>
> void f(T)(inout T var)
>

Not if there's more than 1 argument, and 'inout T' is still not 'T'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130706/d9bdd7b0/attachment.html>


More information about the Digitalmars-d mailing list