
25 May
2011
25 May
'11
4:11 p.m.
On 5/25/2011 8:00 AM, Nevin Liber wrote:
And what exactly is make_auto doing that is *much more* costly than a heap allocation? According to your numbers, it takes almost 2.5x longer than just a new.
The make factory functions create a temporary r-value which needs to be copied to the next l-value; this is why it is much slower. -Phil