Opened 10 years ago

Closed 10 years ago

#6853 closed Bugs (invalid)

[ICL] boost::icl::contains(NaN) returns true

Reported by: Andrew Hundt <ATHundt@…> 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.

Change History (1)

comment:1 by Joachim Faulhaber, 10 years ago

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.