
4 May
2012
4 May
'12
8 p.m.
On Fri, May 4, 2012 at 11:54 AM, Lars Viklund <zao@acc.umu.se> wrote:
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@gmail.com> 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 malfunction.
Then it seems reasonable to me for ICL to also opt not to support NaN's in favor of a simpler implementation, better performance, etc. - Jeff