Boost logo

Boost :

Subject: Re: [boost] [ICL] #6853: boost::icl::contains(NaN) returns true
From: Lars Viklund (zao_at_[hidden])
Date: 2012-05-04 14:54:05

On Fri, May 04, 2012 at 11:48:30AM -0700, Jeffrey Lee Hellrung, Jr. wrote:
> On Fri, May 4, 2012 at 8:14 AM, Andrew Hundt <ahundt_at_[hidden]> wrote:
> How well does std::set/std::map interact with NaN when floating point types
> are used as keys?

Undefinedly, most usually explodedly.

For libraries that have sanity checks on the comparator, hard asserts.
For the rest (or NDEBUG), amusing loss of elements and general

Lars Viklund | zao_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at