Closed Bug 1435406 Opened 3 years ago Closed 3 years ago
Remove implicit fuzzy operator== from Base
I think better default operator== is non-fuzzy. I'm not sure if any callers actually rely on this behavior, but there are only like three apparently, so I just moved them all to use FuzzyEquals. I have a patch written, but I need to wait on try to make sure I didn't miss any other users of the operator==.
Should we just use =delete; for operator==, along with a comment saying that users should be more specific and request the behaviour that they want?
Yeah I think deleting the default operator's is a good way to go. Took an extra try because I locally missed some debug only checks. This patch should have no functional changes as all preexisting uses of operator== are moved to the explicit fuzzy method.
Attachment #8948466 - Flags: review?(matt.woodrow)
Attachment #8948466 - Flags: review?(matt.woodrow) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f72d9fdf6e97 Remove implicit fuzzy operator== from BaseMatrix (bug 1435406, r=mattwoodrow)
You need to log in before you can comment on or make changes to this bug.