Boost C++ Libraries: Ticket #6853: [ICL] boost::icl::contains(NaN) returns true https://svn.boost.org/trac10/ticket/6853 <p> I called something similar to the following, which should return false but instead returned true: boost::icl::contains(std::numeric_limits&lt;double&gt;::quiet_NaN(), boost::icl::valid_range_type::closed(1,30)) </p> <p> The compilers tested for this include gcc 4.2 on OpenSuSE 11.1 and clang 3.1 on OS X Lion. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6853 Trac 1.4.3 Joachim Faulhaber Fri, 04 May 2012 10:50:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6853#comment:1 https://svn.boost.org/trac10/ticket/6853#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Hi Andrew, </p> <p> 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. </p> <p> Regards, Joachim </p> Ticket