
7 Jun
2008
7 Jun
'08
10:43 a.m.
real_concept doesn't have NaN's as such (I realise you can initialise it with a NaN, but the idea is to model a type with a minimum set of requirements, and that means no NaN's). Use std::numeric_limits<T>::has_quiet_NaN to check if the type has a NaN before testing - there may be some obscure platforms with no NaN support for the builtin floating point types in any case, likewise when testing infinities.
OK I added this check to the tests, everything passes now. Just an idea: shouldn't there be such a check directly in isnan() in order it to just return false when has_quiet_NaN is false?
I'll fix those docs.
OK, and I will update the docs in the sandbox to add the new indeterminate_result_error soon. Bruno