Boost logo

Boost :

Subject: Re: [boost] [function] function wrapping withnoexceptionsafetyguarantee
From: Domagoj Saric (dsaritz_at_[hidden])
Date: 2010-10-30 13:25:05

"Daniel Walker" <daniel.j.walker_at_[hidden]> wrote in message
> Sorry, I must have missed your examples.


> Here's a simple benchmark that we could use:

As already explained, such test consisting of simple straightforward for
loop are no good as a capable compiler is able to hoist the if check outside
of the loop (if the overhead of the 'if' is the only thing we are

"What Huxley teaches is that in the age of advanced technology, spiritual
devastation is more likely to come from an enemy with a smiling face than
from one whose countenance exudes suspicion and hate."
Neil Postman 

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