Rvalue references

Dgame r.schuett.1987 at gmail.com
Wed Jan 10 17:59:19 UTC 2018


On Wednesday, 10 January 2018 at 14:41:21 UTC, Steven 
Schveighoffer wrote:
> On 1/10/18 3:08 AM, Dgame wrote:
>> On Wednesday, 10 January 2018 at 01:56:02 UTC, Steven 
>> Schveighoffer wrote:
>>> But current auto ref is what we have, so I would recommend 
>>> using it.
>> 
>> I would recommend to ignore auto ref for rvalue references. It 
>> generates 2^N functions where N is the amount of auto ref 
>> parameters. That the most awful template bloat I've ever seen.
>
> It only generates 2^N functions if you call it 2^N different 
> ways. Most of the time you call it the same way.
>
> -Steve

If that would be true we wouldn't need auto ref at all.


More information about the Digitalmars-d-learn mailing list