[Development] Should QVariant be doing fuzzy comparisons on doubles?

Matthew Woehlke mwoehlke.floss at gmail.com
Fri Sep 23 19:11:43 CEST 2016


On 2016-09-22 16:58, André Pönitz wrote:
> There is not much of a choice. An equivalence relation is reflexive,
> i.e. at least Foo(a) == Foo(a) must be true.

JFTR...

  auto nan = qNaN();
  assert(nan != nan); // okay
  assert(!(nan == nan)); // okay

-- 
Matthew




More information about the Development mailing list