
25 Jul
2006
25 Jul
'06
4:29 p.m.
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.