Rvalue references

Steven Schveighoffer schveiguy at yahoo.com
Wed Jan 10 14:41:21 UTC 2018


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



More information about the Digitalmars-d-learn mailing list