Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-07-28 11:04:09


"John Maddock" <john_at_[hidden]> wrote in message
news:008d01c6b007$88e645d0$a54c0e52_at_fuji...
> Gennadiy Rozental wrote:
>>> The obvious fix is simply to place the numeric_limits checks inside
>>> an if(std::numeric_limits<FPT>::is_specialized) block, and to
>>> perform no safety
>>> checks in this case and just go ahead and perform the division
>>> regardless
>>
>> Did you mean in "else" case?
>
> There is no need for an else: just as long as the numeric_limits code is
> inside the "if" it will fall through to the regular division at the end of
> the function.
>
> John.
>
>>> (there are no checks that can be performed in this case anyway).
>>>
>>> Thanks, John.
>>
>> I will look into this later today.

Should be in cvs by now.

Gennadiy


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