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
news:AANLkTi=XyK9WhaKJO8K8y8AAj70WawJU1TqFHgQd35Tk_at_mail.gmail.com...
> Sorry, I must have missed your examples.

e.g. http://lists.boost.org/Archives/boost/2010/01/160908.php

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

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
considering)...

-- 
"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 acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk