Boost logo

Boost :

Subject: Re: [boost] [Block Pointer] benchmark
From: Phil Bouchard (philippe_at_[hidden])
Date: 2011-05-25 12:11:01

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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at