Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-07-25 12:29:18


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.

Thanks!

John.


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