Template reference parameter

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Mar 23 18:43:44 PDT 2015


On Tue, 24 Mar 2015 00:54:12 +0000, weaselcat wrote:

> On Monday, 23 March 2015 at 22:39:28 UTC, rumbu wrote:
> 
>> I have only one template and I think it's impossible to define
>> specializations since it's supposed that a random member of A... will
>> be passed sometime by reference:
> 
> auto ref? http://dlang.org/template.html#auto-ref-parameters

nope, that is not what OP wants. OP's wish is impossible, due to `ref` 
not being a part of a type.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150324/326685c5/attachment.sig>


More information about the Digitalmars-d-learn mailing list