|
Boost : |
From: Bruno Lalande (bruno.lalande_at_[hidden])
Date: 2008-06-07 06:43:19
> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk