Boost logo

Boost :

Subject: Re: [boost] [review][constrained_value] Review of Constrained Value Library begins today
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-09 11:26:55


AMDG

Giovanni Piero Deretta wrote:
>>> I think that something along the lines of the following will likely work:
>>>
>>> inline double exact(double x) {
>>> struct { volatile double x; } xx = { x };
>>> return xx.x;
>>> }
>>>
>
> Please no. Not only it might prevent other optimizations, but is also
> completely thread unsafe.
>

How so?

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk