Re: Imf::Chromaticities::operator==

Phil Barrett

Chromaticities::operator == (const Chromaticities & c) const
    return red == && green == && blue ==;

FYI we ignore this operator because floating-point equality is a slippery beast. Instead we manually compare the chromaticity coordinates (red, green, blue and white) - and also adoptedWhite if present - read from a file against those of a set of known gamuts with a 4-decimal-place tolerance.

Phil Barrett

Join to automatically receive all group messages.