Opened 10 years ago
Closed 10 years ago
#6853 closed Bugs (invalid)
[ICL] boost::icl::contains(NaN) returns true
Reported by: | Owned by: | Joachim Faulhaber | |
---|---|---|---|
Milestone: | To Be Determined | Component: | ICL |
Version: | Boost 1.49.0 | Severity: | Problem |
Keywords: | icl | Cc: |
Description
I called something similar to the following, which should return false but instead returned true: boost::icl::contains(std::numeric_limits<double>::quiet_NaN(), boost::icl::valid_range_type::closed(1,30))
The compilers tested for this include gcc 4.2 on OpenSuSE 11.1 and clang 3.1 on OS X Lion.
Note:
See TracTickets
for help on using tickets.
Hi Andrew,
icl code is not intended to be NaN complete. NaN is a weird animal that breaks concepts the icl is based on. Completing icl for NaN would make the code unnecessarily clumsy for cases that are hardly ever used. If you desire to complete your code for NaN cases you will have to do it in your code or write your own NaN layer around the icl.
Regards, Joachim