|
Boost : |
Subject: Re: [boost] [review][constrained_value] Review of Constrained Value Library begins today
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2008-12-09 11:37:23
On Tue, Dec 9, 2008 at 5:26 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> 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?
>
Ignore me. Somehow I parsed that struct as 'static'. Sorry for the noise.
-- gpd
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk